3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 0; function f(&$arg):null { $arg++; } var_dump(f($a)); ?>
based on LfklG
Output for 7.0.28 - 7.3.0rc3
Fatal error: Cannot use 'null' as class name as it is reserved in /in/lWrC6 on line 3
Process exited with code 255.
Output for 5.6.38
Parse error: syntax error, unexpected ':', expecting '{' in /in/lWrC6 on line 3
Process exited with code 255.