3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = new \DateTime('2017-07-05T01:00:00+02:00'); $d2 = new \DateTime('2017-07-04T23:00:00-05:00'); var_dump($d1); var_dump($d2); var_dump($d1->diff(d2));
Output for git.master, git.master_jit, rfc.property-hooks
object(DateTime)#1 (3) { ["date"]=> string(26) "2017-07-05 01:00:00.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2017-07-04 23:00:00.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "-05:00" } Fatal error: Uncaught Error: Undefined constant "d2" in /in/O4W1K:8 Stack trace: #0 {main} thrown in /in/O4W1K 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:
52.81 ms | 401 KiB | 8 Q