3v4l.org

run code in 300+ PHP versions simultaneously
<?php const DB_DATETIME_FORMAT = 'Y-m-d H:i:s'; $gmtTimezone = new DateTimeZone("UTC"); $Now = new 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, rfc.property-hooks
Fatal error: Uncaught Error: Class "createFromFormat" not found in /in/TBHGr:4 Stack trace: #0 {main} thrown in /in/TBHGr 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:
73.4 ms | 401 KiB | 8 Q