I changed it to this one: $out = $cmd; now it shows
string(85) "C:/Program Files/GAMS23.7/gams.exe "C:/Program Files/GAMS23.7/trnsport_php.gms" 2>&1"
I changed it to this one: $out = $cmd; now it shows
string(85) "C:/Program Files/GAMS23.7/gams.exe "C:/Program Files/GAMS23.7/trnsport_php.gms" 2>&1"