Result
Unfortunately, no history for this test is available.
Code
The first test, "@define()", was:
@define('CONSTANT', $GLOBALS['dummy']);
The second test, "!defined()", was:
if (!defined('CONSTANT')) define('CONSTANT', $GLOBALS['dummy']);
Warning: Division by zero in /var/customers/webs/stc/benchmark/index.php on line 256
Performance comparison of PHP code alternatives.
Unfortunately, no history for this test is available.
The first test, "@define()", was:
@define('CONSTANT', $GLOBALS['dummy']);
The second test, "!defined()", was:
if (!defined('CONSTANT')) define('CONSTANT', $GLOBALS['dummy']);