3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php matrix = array(0=>array(0=>'W','P','P','P'), 1=>array(0=>'W','O','P','P'), 2=>array(0=>'W','W','W','P'), 3=>array(0=>'W','M','X','P')); for ($i=0;$i<count($matrix);$i++) for ($j=0;$i<count($matrix[$i]);$j++) if ($matrix[$i][$j]=='O') { print $i.$j; break; }
Output for 5.3.0 - 5.4.13
Parse error: syntax error, unexpected '=' in /in/8V3XL on line 3
Process exited with code 255.