3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ('a','b','c','d'); $keys = array_keys($array); for ($i = 0; $i < count($keys); $i++) { $cur = $array[$keys[$i]]; $next = $array[$keys[$i+1]]; echo "current item: ".$cur; echo "current item: ".$next; }
Output for git.master, git.master_jit, rfc.property-hooks
current item: acurrent item: bcurrent item: bcurrent item: ccurrent item: ccurrent item: d Warning: Undefined array key 4 in /in/3sqd3 on line 8 Warning: Undefined array key "" in /in/3sqd3 on line 8 current item: dcurrent item:

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