3v4l.org

run code in 300+ PHP versions simultaneously
<?php const DB_DATETIME_FORMAT = 'Y-m-d H:i:s'; $gmtTimezone = new DateTimeZone("UTC"); print_r($gmtTimezone, true); $Now = DateTime::createFromFormat(DB_DATETIME_FORMAT, 'tomorrow 03:00:00', $gmtTimezone); print_r($Now, true); $Duration = new DateInterval('PT1M'); // 1minute $Now->add( $Duration ); print_r($Now, true); $Duration = new DateInterval('P1D'); // 1Day $Now->add( $Duration ); print_r($Now, true); // 2014-05-12
Output for git.master, git.master_jit
Fatal error: Uncaught Error: Call to a member function add() on bool in /in/DFuI4:9 Stack trace: #0 {main} thrown in /in/DFuI4 on line 9
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught Error: Call to a member function add() on false in /in/DFuI4:9 Stack trace: #0 {main} thrown in /in/DFuI4 on line 9
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.83 ms | 401 KiB | 8 Q