3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = function () {}; var_dump($o); // just for visual compare var_dump((array) $o); // <-- the issue $o = new \DateTime('2013-02-20 20:00:12 UTC'); var_dump($o); var_dump((array) $o);
Output for git.master_jit, git.master
object(Closure)#1 (3) { ["name"]=> string(21) "{closure:/in/fQ0ep:3}" ["file"]=> string(9) "/in/fQ0ep" ["line"]=> int(3) } array(1) { [0]=> object(Closure)#1 (3) { ["name"]=> string(21) "{closure:/in/fQ0ep:3}" ["file"]=> string(9) "/in/fQ0ep" ["line"]=> int(3) } } object(DateTime)#2 (3) { ["date"]=> string(26) "2013-02-20 20:00:12.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } array(3) { ["date"]=> string(26) "2013-02-20 20:00:12.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }

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