3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(file_get_contents("/proc/self/environ")); ?>
Output for 7.1.20, 7.2.6 - 7.2.8
Warning: file_get_contents(): open_basedir restriction in effect. File(/proc/self/environ) is not within the allowed path(s): (/tmp:/in) in /in/QnlGl on line 2 Warning: file_get_contents(/proc/self/environ): failed to open stream: Operation not permitted in /in/QnlGl on line 2 bool(false)
Output for 5.6.28, 7.0.12 - 7.1.10, 7.2.0
string(177) "TERM=xtermPATH=/usr/bin:/binLANG=CSHELL=/bin/shMAIN=/var/mail/nobodyLOGNAME=nobodyUSER=nobodyUSERNAME=nobodyHOME=/TIME=1368737253LD_PRELOAD=/usr/bin/daemon-preload.so"
Output for 4.3.0 - 5.6.21, 7.0.0 - 7.0.6
string(123) "TERM=xtermPATH=/usr/bin:/binLANG=CSHELL=/bin/shMAIN=/var/mail/nobodyLOGNAME=nobodyUSER=nobodyUSERNAME=nobodyHOME=/"