3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function empty($f) { echo 'hi'; } empty('1');
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected 'empty' (T_EMPTY), expecting identifier (T_STRING) or '(' in /in/1LjjD on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_EMPTY, expecting T_STRING or '(' in /in/1LjjD on line 2
Process exited with code 255.