If $_ENV
is empty, you should have a look at your variables_order
ini setting and ensure that the value contains the E
However, you can use $_SERVER
instead:
fwrite($pipes[0], '<?php print_r($_SERVER); ?>');
It will contain environment variables too and should be enabled at 99.999%
of servers (I guess)