3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function testDereferencing() { return ['one', 'two', 'three']; } var_dump(is_scalar(array(1, 2, 3));
Output for 5.4.0 - 5.5.0
Parse error: syntax error, unexpected ';' in /in/IqbNX on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected '[' in /in/IqbNX on line 4
Process exited with code 255.