3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.4.26
Parse error: syntax error, unexpected ';' in /in/5jj0L on line 5
Process exited with code 255.