3v4l.org

run code in 300+ PHP versions simultaneously
<?php function testDereferencing() { return ['one', 'two', 'three']; } var_dump(is_scalar(array(1, 2, 3));
Output for 5.4.0 - 5.4.16, 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.

preferences:
186.2 ms | 1386 KiB | 52 Q