3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vals = array('a', 'b', 'c', 'd', 'e', 'f'); $token = true; $i = 0; while($token) { $val = $vals[$i]; if ($val == 'a') { echo 'a'; } elseif ($val == 'b') { echo 'b'; } elseif ($val == 'c') { echo 'c'; } elseif ($val == 'd') { echo 'd'; } elseif ($val == 'e') { echo 'e'; } elseif ($val == 'f') { echo 'f'; } else { $token = false; } $i++; } exit;
Output for git.master, git.master_jit, rfc.property-hooks
abcdef Warning: Undefined array key 6 in /in/3ZrRu on line 8

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