3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('z',strtotime("2014-12-31")); $s = new DateTime(strtotime("2014-01-01")); $e = new DateTime(strtotime("2014-12-31")); echo $e->diff($s)->days;
Output for git.master, git.master_jit
364 Fatal error: Uncaught Exception: Failed to parse time string (1388530800) at position 8 (0): Unexpected character in /in/u9aJ3:4 Stack trace: #0 /in/u9aJ3(4): DateTime->__construct('1388530800') #1 {main} thrown in /in/u9aJ3 on line 4
Process exited with code 255.
Output for rfc.property-hooks
364 Fatal error: Uncaught DateMalformedStringException: Failed to parse time string (1388530800) at position 8 (0): Unexpected character in /in/u9aJ3:4 Stack trace: #0 /in/u9aJ3(4): DateTime->__construct('1388530800') #1 {main} thrown in /in/u9aJ3 on line 4
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.02 ms | 401 KiB | 8 Q