Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

Do "Notice" and "warnings" slow a PHP script, with no error reporting?

Do "Notice" and "warnings" slow a PHP script, with no error reporting?

I once did a test for this, and the difference in execution time was negligible.
I am still curious though.

If error_reporting is set to zero, and "notice" errors are getting generated, does it matter much?

This code for example will generate NOTICE errors:

<?php

$a=array( 'red'=>255, 'green'=>200, 'blue'=>100 );
echo $a[red].'<br />'; //Notice error
echo $a['green'].'<br />'; //notice error
echo...
Code (markup):
Do "Notice" and "warnings" slow a PHP script, with no error reporting?

from PHP https://ift.tt/34MJQjb
via IFTTT

Post a Comment

0 Comments