3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //echo date('d-M-y'); //echo date('d-m-y H:i:s A' , strtotime( '29-APR-13 09.28.12.505032 pm')); $date = '29-APR-13 09.28.12.505032 PM'; $newDate = str_replace(substr($date, 19, 25), "", $date); echo $newDate //echo date("d-m-y H:i:s", strtotime("29-APR-13 09:28:12:505032 PM"));
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/1Nm72 on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/1Nm72 on line 7
Process exited with code 255.