3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $colors = array( 'red', 'green' ); $color=""; foreach($colors as $color) { $j=1; while($j <6) { if($j>1) $value = $value."($j)"; array.push($value,$color); $j++; } } print_r($color);
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '.', expecting '(' in /in/7baDY on line 12
Process exited with code 255.