3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php cass Foo { function bar(array $array) { } } $d = new Foo; $d->bar(null); $d->bar(array()); $d->bar('');
Output for 5.4.18 - 5.4.19
Parse error: syntax error, unexpected 'Foo' (T_STRING) in /in/gB9b6 on line 2
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'Foo' (T_STRING) in /in/HtvnE on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_STRING in /in/HtvnE on line 2
Process exited with code 255.