3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a(array $a) { } try { a('s'); } catch (\Exception) {}
Output for 5.4.0 - 5.5.9
Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) in /in/6cmYP on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected ')', expecting T_VARIABLE in /in/6cmYP on line 7
Process exited with code 255.