3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date_default_timezone_get(); echo date("H:i:s);
Output for 5.4.0 - 5.4.11
Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in cl5H5 on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.21
Parse error: syntax error, unexpected $end, expecting T_VARIABLE or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN in cl5H5 on line 3
Process exited with code 255.

preferences:
173.24 ms | 1386 KiB | 41 Q