3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "Selected Source is StorageM"; if (in_array($Idgd, $dir_resul)) { echo "File Found Transfer will begin"; shell_exec("/var/www/create00/scripts/./XferHres.sh $Idgd $destd"); } else{ echo "File doesn't Exist!!!"; }
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Selected Source is StorageM Notice: Undefined variable: Idgd in /in/jpDt3 on line 5 Notice: Undefined variable: dir_resul in /in/jpDt3 on line 5 Warning: in_array() expects parameter 2 to be array, null given in /in/jpDt3 on line 5 File doesn't Exist!!!
Output for hhvm-3.15.4
Selected Source is StorageM Notice: Undefined variable: Idgd in /in/jpDt3 on line 5 Notice: Undefined variable: dir_resul in /in/jpDt3 on line 5 Warning: in_array() expects parameter 2 to be an array or collection in /in/jpDt3 on line 5 File doesn't Exist!!!