3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ "true", true, 1, "1", "false", false, 0, "0", "a string", "a string ", "a \x00\x00\x00string", "Array ( [0] => a [1] => b [2] => c )", "a string [13] => Array ( [0] => yeah, this is in fact still the same string as [12] )" ]; header("Content-type: text/plain"); print_r($a); var_dump($a);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => true [1] => 1 [2] => 1 [3] => 1 [4] => false [5] => [6] => 0 [7] => 0 [8] => a string [9] => a string [10] => a string [11] => Array ( [0] => a [1] => b [2] => c ) [12] => a string [13] => Array ( [0] => yeah, this is in fact still the same string as [12] ) ) array(13) { [0]=> string(4) "true" [1]=> bool(true) [2]=> int(1) [3]=> string(1) "1" [4]=> string(5) "false" [5]=> bool(false) [6]=> int(0) [7]=> string(1) "0" [8]=> string(8) "a string" [9]=> string(80) "a string " [10]=> string(11) "a string" [11]=> string(68) "Array ( [0] => a [1] => b [2] => c )" [12]=> string(105) "a string [13] => Array ( [0] => yeah, this is in fact still the same string as [12] )" }

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:
32.79 ms | 409 KiB | 5 Q