3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Variable = "AAAA VALUE BBBB VALUE CCCC VALUE"; $startval = 1; $endval = 5; $var = explode("\n", $Variable); $str = ""; Foreach($var as $v){ $temp = explode(" " , $v); for($i=$startval; $i<=$endval; $i++){ $str .= $temp[0] .$i . " " . $temp[1] .$i. "\n"; } $str .= "\n"; } Echo $str;
Output for git.master, git.master_jit, rfc.property-hooks
AAAA1 VALUE1 AAAA2 VALUE2 AAAA3 VALUE3 AAAA4 VALUE4 AAAA5 VALUE5 BBBB1 VALUE1 BBBB2 VALUE2 BBBB3 VALUE3 BBBB4 VALUE4 BBBB5 VALUE5 CCCC1 VALUE1 CCCC2 VALUE2 CCCC3 VALUE3 CCCC4 VALUE4 CCCC5 VALUE5

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