3v4l.org

run code in 300+ PHP versions simultaneously
<?php $header = array(); $header[] = new DateTime(); $header[] = new DateTime(); $header[] = new DateTime(); $header[] = new DateTime(); $header[] = new DateTime(); $header[] = new DateTime(); foreach($header as $value) { $value = null; } var_dump($header);
Output for git.master
array(6) { [0]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003730" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [1]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003737" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [2]=> object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003738" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [3]=> object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003738" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [4]=> object(DateTime)#5 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003739" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [5]=> object(DateTime)#6 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003739" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for git.master_jit
array(6) { [0]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003943" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [1]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003950" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [2]=> object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003951" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [3]=> object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003951" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [4]=> object(DateTime)#5 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003952" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [5]=> object(DateTime)#6 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003952" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for rfc.property-hooks
array(6) { [0]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003510" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [1]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003512" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [2]=> object(DateTime)#3 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003513" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [3]=> object(DateTime)#4 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003513" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [4]=> object(DateTime)#5 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003514" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [5]=> object(DateTime)#6 (3) { ["date"]=> string(26) "2015-11-09 20:09:10.003514" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }

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:
56.54 ms | 403 KiB | 8 Q