3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('MAX_RUNS_ON_SITE',12); $nRuns=2; $nSplits=1; $bShowSplits=true; for($i=1;$i<=$nRuns;$i++) { ${"sRun{$i}Split1"} = 'blah'; if ($nSplits>0) ${"nRun{$i}Split1Pos"} = $row['nRun'.$i.'Split1Pos']; } for ($i=1;$i<=MAX_RUNS_ON_SITE;$i++) { if ($nRuns>$i-1) $thisRow[] = displayRunTime(${'sRun'.$i.'Split1'}, ${'nRun'.$i.'Split1Pos'}); } function displayRunTime($s, $n) { echo $s; echo ' '; echo $n; } ?>
based on kfdUQ
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: row in /in/vuEhe on line 12 Notice: Undefined variable: row in /in/vuEhe on line 12 blah blah
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: row in /in/vuEhe on line 12 Notice: Undefined variable: row in /in/vuEhe on line 12 blah blah