3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime('2040-01-01'); echo $now->format('U'), PHP_EOL; echo date('U', strtotime('2040-01-01');
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.30
Parse error: syntax error, unexpected ';' in /in/oa059 on line 5
Process exited with code 255.

preferences:
197.86 ms | 1395 KiB | 67 Q