3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $values = [ null, new stdClass(), "asdasdasd" 123123 ]; foreach ($values as $value) { var_dump($value === null); echo "\n"; }
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '123123' (T_LNUMBER), expecting ']' in /in/LYksb on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/LYksb on line 2
Process exited with code 255.