3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime('today', new \DateTimeZone('Europe/Paris')); $date->setTime(10,0); $date2 = clone($date); var_dump($date, $date2->setTimeZone(new \DateTimeZone('Europe/London')), $date2->getDate());
Output for git.master_jit, git.master, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined method DateTime::getDate() in /in/SXFa1:8 Stack trace: #0 {main} thrown in /in/SXFa1 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:
55.34 ms | 401 KiB | 8 Q