3v4l.org

run code in 300+ PHP versions simultaneously
<?php // given: unset($undef); $null = NULL; $false = FALSE; $true = TRUE; // these operations: isset($var) empty($var) array_key_exists('var', $GLOBALS) // "defined" below
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected 'empty' (T_EMPTY) in /in/jIdPA on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_EMPTY in /in/jIdPA on line 10
Process exited with code 255.

preferences:
193.4 ms | 1386 KiB | 63 Q