3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function testDereferencing() { return ['one', 'two', 'three']; } var_dump(is_scalar([1,2,3]));
Output for 5.4.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(false)
Output for 5.2.14 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/ebbLl on line 4
Process exited with code 255.