3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function bla($arr = fopen('bla', 'rw')) { var_dump($arr); } bla(); bla(null); bla(array());
Output for hhvm-3.10.0 - 3.12.0
Warning: No such file or directory in /in/m9LMu on line 4 bool(false) NULL array(0) { }
Output for 5.3.0 - 5.4.19
Parse error: syntax error, unexpected '(', expecting ')' in /in/m9LMu on line 4
Process exited with code 255.