3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get($l, $c) { $value = 0; if (0 <= $c && $c <= $l && $l < 5000) { $tab = []; for ($i = 0; $i <= $l; $i++) { for ($j = 0; $j <= $c; $j++) { if ($i == $j || $i - 1 <= 0 || $j <= 0) { $tab[$i][$j] = 1; $value = $tab[$i][$j]; } elseif ($i != $j) { $tab[$i][$j] = bcadd($tab[$i - 1][$j - 1], $tab[$i - 1][$j]); $value = $tab[$i][$j]; } } } } return $value; } $result = get(67, 34); var_dump($result == '14226520737620288370'); echo $result;
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) 14226520737620288370

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