3v4l.org

run code in 300+ PHP versions simultaneously
<?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', $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 git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /in/FohCD:8 Stack trace: #0 /in/FohCD(8): date('d/m/y h:i:s', '29-APR-13 09:28...') #1 {main} thrown in /in/FohCD on line 8
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.62 ms | 401 KiB | 8 Q