3v4l.org

run code in 300+ PHP versions simultaneously
<?php function solve($a0 = 5, $a1 = 6, $a2 = 7, $b0 = 4, $b1 = 5, $b2 = 7) { $pointsArray = array(); $varA = ""; $varA = 'a1'; echo $$varA; for($i = 0; $i++; $i < 3) { $varA = "a{$i}"; echo $varA; $varB = "b{$i}"; echo ${$varA}; if(${$varA} > ${$varB}) { $pointsArray['A'] = 1; } elseif (${$varA} < ${$varB}) { $pointsArray ['B'] = 1; } } echo $pointsArray['A'] . " " . $pointsArray['B']; } solve();
Output for git.master, git.master_jit, rfc.property-hooks
6 Warning: Undefined array key "A" in /in/lK8LY on line 56 Warning: Undefined array key "B" in /in/lK8LY on line 56

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