3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = 8; $count = 0; function trace($x, $y, $z, $steps) { global $count; if ($steps == 0) { if ($x == 0 && $y == 0 && $z == 0) { $count++; } return; } for($i = $x-1; $i <= $x+1; $i++) { for($j = $y-1; $j <= $y+1; $j++) { for($k = $z-1; $k <= $z+1; $k++) { if ( array_sum(array($i, $j, $k)) !== 0 || ($i == $x && $j == $y && $k == $z) ) { continue; } trace($i, $j, $k, $steps-1); } } } } trace(0, 0, 0, $in); echo $count;

Abusive script

This script was stopped while abusing our resources

Output for git.master, git.master_jit, rfc.property-hooks
54810

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:
118.03 ms | 405 KiB | 5 Q