- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.28
- Parse error: syntax error, unexpected '*' in /in/cDfaD on line 13
Process exited with code 255.
<?php
$isset = true;
$array = array();
$notSetArray = array(0=>'');
$string = '';
// Test Source
function TestEmpty() {
$array = null;
$i = 0;
* The Test *
$t = microtime(true);
while($i < 2000) {
empty($array);
++$i;
}
echo (microtime(true) - $t);
}
function TestEmpty2() {
$array = array();
$i = 0;
* The Test *
$t = microtime(true);
while($i < 2000) {
(! $array );
++$i;
}
echo (microtime(true) - $t);
}
function TestEmpty3() {
$array = array();
$i = 0;
* The Test *
$t = microtime(true);
while($i < 2000) {
($array !== []);
++$i;
}
echo (microtime(true) - $t);
}
TestEmpty();
echo "\n\n";
TestEmpty2();
echo "\n\n";
TestEmpty3();