3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //comprobador de fitxers en zona 3 function bfr($d,$A){ if(is_dir($d)){ $a='';$a=scandir($d); //echo $func; $z='holhola'; $A($z); unset($a[array_search('.',$a)]);unset($a[array_search('..',$a)]); foreach($a as $v){ if(is_file($d.$v)){ $z='afas'; $A($z); //echo $d.$v.'<br>'; }elseif(is_dir($d.$v)){ //echo 'directory--->'.$d.$v.'<br>'; bfr($d.$v.'/'); }else{} } }else{} } function aaa($k){echo $k.'<br>';} bfr('./../E/2/L/','aaa'); //echo 'hola mon';
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.2.0
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/ePAJn on line 28
Process exited with code 255.