3v4l.org

run code in 300+ PHP versions simultaneously
<?php $names = [ 'John', 'Jane', 'George', 'Jim', 'Jack' ]; $groups = [ '1', '2', '3' ]; foreach ($names as $index => $name) { $result = "The student: " . $name . " belongs to the: " .$groups[$index%sizeOf($groups)]. "group" ; echo ($result); echo "<br>"; echo "<br>"; }
Output for git.master, git.master_jit, rfc.property-hooks
The student: John belongs to the: 1group<br><br>The student: Jane belongs to the: 2group<br><br>The student: George belongs to the: 3group<br><br>The student: Jim belongs to the: 1group<br><br>The student: Jack belongs to the: 2group<br><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:
190.9 ms | 406 KiB | 5 Q