3v4l.org

run code in 300+ PHP versions simultaneously
<?php function d6() { return range(1,6); } $t = $i = 0; foreach(d6() as $a) { foreach(d6() as $b) { foreach(d6() as $c) { $t++; // includes both doubles and triples if($a==$b || $a == $c || $b == $c) { $i++; } } } } echo "$i doubles out of $t results.\n";
Output for git.master, git.master_jit, rfc.property-hooks
96 doubles out of 216 results.

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:
46.9 ms | 401 KiB | 8 Q