3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [20,22,29,40,67,35,98,200,205,220]; subTractReccursive($a); function subTractReccursive($a){ for($i=0;$i<count($a)-1;$i++){ $c[] = $a[$i+1]-$a[$i]; } echo implode (' ',$c)."\n"; if(count($c) > 1){ subTractReccursive($c); } return; }
Output for git.master_jit, git.master, rfc.property-hooks
2 7 11 27 -32 63 102 5 15 5 4 16 -59 95 39 -97 10 -1 12 -75 154 -56 -136 107 13 -87 229 -210 -80 243 -100 316 -439 130 323 416 -755 569 193 -1171 1324 -376 2495 -1700 -4195

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:
92.47 ms | 406 KiB | 5 Q