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'; $new_date = substr($date,0,18).substr($date, 25,28); $new_date = str_replace(".", ":", $new_date); echo $new_date; $oracle_date = date('d/m/y H:i:s A', strtotime($new_date)); echo $oracle_date; //echo "\n"; //echo date("d-M-y h:i:s A"); //$elapsed_time = round(abs(date("d-M-y h:i:s a") - $new_date) / 60,2); //echo $elapsed_time;
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
29-APR-13 09:28:12 PM29/04/13 21:28:12 PM
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/M4CN4 on line 13
Process exited with code 255.