3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(gmdate('Y-m-d', 1399669200000 /1000 )); var_dump(gmdate('Y-m-d', 1399755600000 /1000 )); $dt = new DateTime(1399755600); var_dump($dt->format('Y-m-d')); var_dump(strtotime('2014-05-10 23:00:00'));
Output for git.master, git.master_jit
string(10) "2014-05-09" string(10) "2014-05-10" Fatal error: Uncaught Exception: Failed to parse time string (1399755600) at position 8 (0): Unexpected character in /in/BHXnm:5 Stack trace: #0 /in/BHXnm(5): DateTime->__construct('1399755600') #1 {main} thrown in /in/BHXnm on line 5
Process exited with code 255.
Output for rfc.property-hooks
string(10) "2014-05-09" string(10) "2014-05-10" Fatal error: Uncaught DateMalformedStringException: Failed to parse time string (1399755600) at position 8 (0): Unexpected character in /in/BHXnm:5 Stack trace: #0 /in/BHXnm(5): DateTime->__construct('1399755600') #1 {main} thrown in /in/BHXnm on line 5
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:
36.04 ms | 401 KiB | 8 Q