3v4l.org

run code in 300+ PHP versions simultaneously
<?php generate(80,10); function generate($start, $level){ $i=1; // Just a var $array = array_fill(0, $level, $start); // create an array with $level elements, with value $start array_map(function($v)use(&$i){ // Loop through the array and use $i echo "Level $i: ".(array_product(array($v, pow(1.5, $i++))))."<br>"; // Some basic math and output }, $array); } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Level 1: 120<br>Level 2: 180<br>Level 3: 270<br>Level 4: 405<br>Level 5: 607.5<br>Level 6: 911.25<br>Level 7: 1366.875<br>Level 8: 2050.3125<br>Level 9: 3075.46875<br>Level 10: 4613.203125<br>

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