3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $map = ' \\ / / / / / \\ \\ \\ / \\ /\\ \\/ \\ / \\ \\ \\ \\ \\ \\ / /'; echo r($map); function r($m){ //$x=1;$p=0; echo strrpos(substr($m,0,strpos($m,"/\\")),"\n"); // foreach(explode("\n",$m) as $l){ // // echo $x.")".$l."\n";$x++; // if($p=strpos($l,"/\\")){$p++;break;} // }echo $p; }
based on nc71N
Output for 5.3.18 - 7.3.0beta1
104