3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { $myBar = []; foreach (range(0, 10) as $i) { $myBar[] = $i . ' cats'; } return $myBar; } var_dump(foo());
Output for git.master, git.master_jit, rfc.property-hooks
array(11) { [0]=> string(6) "0 cats" [1]=> string(6) "1 cats" [2]=> string(6) "2 cats" [3]=> string(6) "3 cats" [4]=> string(6) "4 cats" [5]=> string(6) "5 cats" [6]=> string(6) "6 cats" [7]=> string(6) "7 cats" [8]=> string(6) "8 cats" [9]=> string(6) "9 cats" [10]=> string(7) "10 cats" }

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:
38.71 ms | 402 KiB | 8 Q