3v4l.org

run code in 300+ PHP versions simultaneously
<?php function calcCoord($mixed){ if(is_array($mixed) && isset($mixed[0], $mixed[1])){ return $mixed[0]+$mixed[1]%$i; } if(!is_numeric($mixed){ return $mixed%8+floor($mixed/8); } return false; }
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25
Parse error: syntax error, unexpected '{' in /in/mD6UR on line 8
Process exited with code 255.

preferences:
184.8 ms | 1395 KiB | 62 Q