3v4l.org

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