3v4l.org

run code in 300+ PHP versions simultaneously
<?php function empty($f) { echo 'hi'; } empty(1);
Output for 5.5.0 - 5.5.10
Parse error: syntax error, unexpected 'empty' (T_EMPTY), expecting '(' in /in/2Bt6Y on line 2
Process exited with code 255.
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected 'empty' (T_EMPTY), expecting identifier (T_STRING) or '(' in /in/2Bt6Y 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/2Bt6Y on line 2
Process exited with code 255.

preferences:
203.59 ms | 1386 KiB | 74 Q