3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = "Y-m-d\TH:i:s.vP"; $t = (new DateTime())->format($f); $r = DateTime::createFromFormat($f, $t); var_dump( $f, $t, $r );
Output for git.master, rfc.property-hooks
string(15) "Y-m-d\TH:i:s.vP" string(29) "2019-05-06T00:29:01.003+02:00" object(DateTime)#1 (3) { ["date"]=> string(26) "2019-05-06 00:29:01.003000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" }
Output for git.master_jit
string(15) "Y-m-d\TH:i:s.vP" string(29) "2019-05-06T00:29:01.007+02:00" object(DateTime)#1 (3) { ["date"]=> string(26) "2019-05-06 00:29:01.007000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02: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:
65.81 ms | 401 KiB | 8 Q