3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = "12/31/2013"; echo (date("Y-m-d", strtotime($date))) . "\n"; $date = new DateTime($date)); echo $date->format('Y-m-d H:i:sP') . "\n";
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.24
Parse error: syntax error, unexpected ')' in /in/gXpZC on line 5
Process exited with code 255.

preferences:
189.54 ms | 1395 KiB | 61 Q