3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Berlin'); $date = new DateTime(); $date->setDate(2015, 10, 25); $date->setTime(1, 30, 0); $date2 = clone $date; // Add two hours $date->add(new DateInterval('PT2H')); // Add two times one hour $date2->add(new DateInterval('PT1H')); $date2->add(new DateInterval('PT1H')); echo "Spot the difference: ".$date->format(DateTime::ATOM)." <---> ".$date2->format(DateTime::ATOM)."\n";
Output for git.master, git.master_jit, rfc.property-hooks
Spot the difference: 2015-10-25T02:30:00+01:00 <---> 2015-10-25T02:30:00+01:00

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:
50.98 ms | 401 KiB | 8 Q