3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime("now"); var_dump($dt); var_dump(property_exists($dt, "timezone")); var_dump($dt->timezone);
Output for git.master_jit
object(DateTime)#1 (3) { ["date"]=> string(26) "2024-11-18 23:33:30.005279" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false) Warning: Undefined property: DateTime::$timezone in /in/ZS1MZ on line 6 NULL
Output for git.master
object(DateTime)#1 (3) { ["date"]=> string(26) "2024-11-18 23:33:30.005400" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false) Warning: Undefined property: DateTime::$timezone in /in/ZS1MZ on line 6 NULL

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:
27.62 ms | 407 KiB | 5 Q