3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(NULL, new DateTimeZone('Europe/Rome')); echo $date->format('Y-m-d H:i:s O'), "\n"; $result = $date->modify('15 minutes ago'); echo $date->format('Y-m-d H:i:s O'), "\n"; var_dump($result);
Output for git.master
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/D2HCd on line 3 2014-04-25 14:59:59 +0200 2014-04-25 14:44:59 +0200 object(DateTime)#1 (3) { ["date"]=> string(26) "2014-04-25 14:44:59.003616" ["timezone_type"]=> int(3) ["timezone"]=> string(11) "Europe/Rome" }
Output for git.master_jit
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/D2HCd on line 3 2014-04-25 14:59:59 +0200 2014-04-25 14:44:59 +0200 object(DateTime)#1 (3) { ["date"]=> string(26) "2014-04-25 14:44:59.003773" ["timezone_type"]=> int(3) ["timezone"]=> string(11) "Europe/Rome" }
Output for rfc.property-hooks
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/D2HCd on line 3 2014-04-25 14:59:59 +0200 2014-04-25 14:44:59 +0200 object(DateTime)#1 (3) { ["date"]=> string(26) "2014-04-25 14:44:59.003896" ["timezone_type"]=> int(3) ["timezone"]=> string(11) "Europe/Rome" }

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