3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $list = $argv; array_shift($list); $transCoords = explode(',' array_shift($list)); for ($i = 0; $i < count($list); ++$i) { $coords = explode(',', $list[$i]); if (count($coords) == 2) { $list[$i] = ($coords[0] + $transCoords[1]) . ',' . ($coords[1] + $transCoords[1]) } } echo implode(' ', $list) . PHP_EOL; ?>
Output for 5.4.0 - 5.4.22
Parse error: syntax error, unexpected 'array_shift' (T_STRING) in /in/pjpnR on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_STRING in /in/pjpnR on line 4
Process exited with code 255.