3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(['a', "b", true, 12, 12.6, null, ['a', "b", true, 12, 12.6, null], (object)['a' => (object)[], 'b' => function(){}, 'c' => new DateTime()]]);
Output for git.master
array(8) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> bool(true) [3]=> int(12) [4]=> float(12.6) [5]=> NULL [6]=> array(6) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> bool(true) [3]=> int(12) [4]=> float(12.6) [5]=> NULL } [7]=> object(stdClass)#4 (3) { ["a"]=> object(stdClass)#1 (0) { } ["b"]=> object(Closure)#2 (0) { } ["c"]=> object(DateTime)#3 (3) { ["date"]=> string(26) "2016-01-20 14:02:11.003444" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } }
Output for git.master_jit
array(8) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> bool(true) [3]=> int(12) [4]=> float(12.6) [5]=> NULL [6]=> array(6) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> bool(true) [3]=> int(12) [4]=> float(12.6) [5]=> NULL } [7]=> object(stdClass)#4 (3) { ["a"]=> object(stdClass)#1 (0) { } ["b"]=> object(Closure)#2 (0) { } ["c"]=> object(DateTime)#3 (3) { ["date"]=> string(26) "2016-01-20 14:02:11.003928" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } } }
Output for rfc.property-hooks
array(8) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> bool(true) [3]=> int(12) [4]=> float(12.6) [5]=> NULL [6]=> array(6) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> bool(true) [3]=> int(12) [4]=> float(12.6) [5]=> NULL } [7]=> object(stdClass)#4 (3) { ["a"]=> object(stdClass)#1 (0) { } ["b"]=> object(Closure)#2 (0) { } ["c"]=> object(DateTime)#3 (3) { ["date"]=> string(26) "2016-01-20 14:02:11.003533" ["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:
58.86 ms | 402 KiB | 8 Q