3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Y= new DateTime(); $X= new DateTime('2000-01-01'); echo($X->format('O') . "\n"); echo(DateTimeZone($X->format('e') . "\n"); echo($X->format('d/m/Y') . "\n"); $X= new DateTime('@' . $X->format('U'),new DateTimeZone($X->format('e'))); echo($X->format('d/m/Y') . "\n"); echo($X->format('O') . "\n"); echo(DateTimeZone($X->format('e') . "\n");
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.26
Parse error: syntax error, unexpected ';' in /in/5jj0L on line 5
Process exited with code 255.

preferences:
198.73 ms | 1395 KiB | 63 Q