3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new DateTime('2018-03-05 00:00:00'); if (isset($test->timezone)) { echo 'timezone is set!'.PHP_EOL; } else { echo 'timezone is not set!'.PHP_EOL; } if (isset($test->timezone_type)) { echo 'timezone type is set!'.PHP_EOL; } else { echo 'timezone type is not set!'.PHP_EOL; } echo 'getting properties...'.PHP_EOL; get_object_vars($test); if (isset($test->timezone)) { echo 'timezone is now set!'.PHP_EOL; } else { echo 'timezone is still not set!'.PHP_EOL; } if (isset($test->timezone_type)) { echo 'timezone type now is set!'.PHP_EOL; } else { echo 'timezone type is still not set!'.PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
timezone is not set! timezone type is not set! getting properties... timezone is still not set! timezone type is still not set!

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