3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //comprobador de fitxers en zona 3 function bfr($d,$A){ //echo $func; $z='holhola'; $A($z); foreach($a as $v){ $z='afas'; $A($z); } } function aaa($k){echo $k.'<br>';} bfr('./../E/2/L/','aaa'); //echo 'hola mon';
based on ePAJn
Output for 5.1.1 - 7.2.0
holhola<br> Notice: Undefined variable: a in /in/8svtq on line 9 Warning: Invalid argument supplied for foreach() in /in/8svtq on line 9
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/8svtq on line 18
Process exited with code 255.
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.0.5
holhola<br> Warning: Invalid argument supplied for foreach() in /in/8svtq on line 9
Output for 4.3.11
holhola<br>