3v4l.org

run code in 300+ PHP versions simultaneously
<?php function print_array(array $arr) { foreach ($arr as $k => $a){ if ($k && $k % 3 == 0) { echo "something awesome\n"; } echo "$a \n"; } } echo("================ Multiple of 3 =================\n"); print_array(range(11, 19)); echo("\n"); echo("============== Not multiple of 3 ===============\n"); print_array(range(11, 20)); echo("\n"); //
Output for git.master_jit, git.master, rfc.property-hooks
================ Multiple of 3 ================= 11 12 13 something awesome 14 15 16 something awesome 17 18 19 ============== Not multiple of 3 =============== 11 12 13 something awesome 14 15 16 something awesome 17 18 19 something awesome 20

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