3v4l.org

run code in 300+ PHP versions simultaneously
<?php function MySwal($items, $k){ if ($items[$k] != "end") { //if ($items != "end") { echo <<<MySWALSTUFF_A <p> at {$k} : processing {$items[$k]} . next item is {$items[$k+1]} MySWALSTUFF_A; //include this later echo MySwal($items, ($k+1)); //recursive function } else { //else for if item is !=end echo "<HR><h3>This is the end, beautiful friend... </h3>"; }//if for item != end ends here :-) } MySwal(array('one', 'two', 'end'), 0);
Output for git.master, git.master_jit, rfc.property-hooks
<p> at 0 : processing one . next item is two <p> at 1 : processing two . next item is end<HR><h3>This is the end, beautiful friend... </h3>

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