3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = "30-12-1899 9:25:52 AM"; sscanf($date, "%d-%d-%d %d:%d:%d %s", $d, $m, $Y, $g, $i, $s, $A); $h = $A == 'AM' ? $g : $g + 12; echo "$Y-$m-$d $h:$i:$s", "\n"; echo "$h:$i:$s", "\n"; // etc.
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1899-12-30 9:25:52 9:25:52
Output for 5.1.0
<br /> <b>Fatal error</b>: fatal flex scanner internal error--end of buffer missed in <b>/in/lu7kk</b> on line <b>7</b><br />
Process exited with code 255.