3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $combinations = 0; for($a = 200; $a >= 0; $a -= 200) { for($b = $a; $b >= 0; $b -= 100) { for($c = $b; $c >= 0; $c -= 50) { for($d = $c; $d >= 0; $d -= 20) { for($e = $d; $e >= 0; $e -= 10) { for($f = $e; $f >= 0; $f -= 5) { for($g = $f; $g >= 0; $g -= 2) { for($h = $g; $h >= 0; $h -= 2) { for($i = $h; $i >= 0; $i -= 1) { $combinations += 1; } } } } } } } } } echo $combinations;
Output for 5.4.2, 5.4.41 - 7.2.0
49799714
Output for 5.3.13 - 5.3.29, 5.4.3 - 5.4.40

Process exited with code 137.