3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(time());   $array = array();    $i = 0;    for($i=0;$i<10000;$i++){        $array[‘key’] = 2;    } var_dump(time()); /* var_dump(time()); $array = array(); $i = 0; for($i=0;$i<10000;$i++){ $array[key] = 2; } var_dump(time()); */ ?>
Output for 5.4.0 - 5.4.13
Parse error: syntax error, unexpected '$array' (T_VARIABLE) in /in/sAVgW on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.23
Parse error: syntax error, unexpected T_VARIABLE in /in/sAVgW on line 3
Process exited with code 255.