3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DateTime('2023-11-11 12:00:00 +09:00'); var_dump($d); $d = new DateTime('2023-11-11 12:00:00 JST'); var_dump($d); $d = new DateTime('2023-11-11 12:00:00 Asia/Tokyo'); var_dump($d);
Output for git.master_jit, git.master, rfc.property-hooks
object(DateTime)#1 (3) { ["date"]=> string(26) "2023-11-11 12:00:00.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+09:00" } object(DateTime)#2 (3) { ["date"]=> string(26) "2023-11-11 12:00:00.000000" ["timezone_type"]=> int(2) ["timezone"]=> string(3) "JST" } object(DateTime)#1 (3) { ["date"]=> string(26) "2023-11-11 12:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(10) "Asia/Tokyo" }

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:
83.22 ms | 406 KiB | 5 Q