3v4l.org

run code in 300+ PHP versions simultaneously
<?php $default = new \DateTime(); date_default_timezone_set('America/Santiago'); $tz = new \DateTime(); var_dump([ $default->format('Y-m-d H:i'), $tz->format('Y-m-d H:i'), ]);
Output for rfc.property-hooks, git.master, git.master_jit
array(2) { [0]=> string(16) "2015-04-28 19:46" [1]=> string(16) "2015-04-28 14:46" }

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:
43.45 ms | 2075 KiB | 4 Q