3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.4.25
Parse error: syntax error, unexpected '{' in /in/mD6UR on line 8
Process exited with code 255.