3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump($_SERVER); exec("ls -a"); ?>
Output for 5.4.0 - 7.3.0
array(17) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(9) "/in/JOZHC" ["SCRIPT_NAME"]=> string(9) "/in/JOZHC" ["SCRIPT_FILENAME"]=> string(9) "/in/JOZHC" ["PATH_TRANSLATED"]=> string(9) "/in/JOZHC" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME_FLOAT"]=> float(1389840303.0001) ["REQUEST_TIME"]=> int(1389840303) ["argv"]=> array(1) { [0]=> string(9) "/in/JOZHC" } ["argc"]=> int(1) }
Output for 5.2.3 - 5.3.29
array(16) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(9) "/in/JOZHC" ["SCRIPT_NAME"]=> string(9) "/in/JOZHC" ["SCRIPT_FILENAME"]=> string(9) "/in/JOZHC" ["PATH_TRANSLATED"]=> string(9) "/in/JOZHC" ["DOCUMENT_ROOT"]=> string(0) "" ["REQUEST_TIME"]=> int(1389840303) ["argv"]=> array(1) { [0]=> string(9) "/in/JOZHC" } ["argc"]=> int(1) }
Output for 5.1.0 - 5.2.2
array(12) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(0) "" ["REQUEST_TIME"]=> int(1389840303) ["argv"]=> array(1) { [0]=> string(9) "/in/JOZHC" } ["argc"]=> int(1) }
Output for 5.0.0 - 5.0.5
array(11) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["PHP_SELF"]=> string(0) "" ["argv"]=> array(1) { [0]=> string(9) "/in/JOZHC" } ["argc"]=> int(1) }
Output for 4.3.0 - 4.4.9
array(13) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIL"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["HOME"]=> string(4) "/tmp" ["TIME"]=> string(10) "1389840303" ["LD_PRELOAD"]=> string(26) "/usr/bin/daemon-preload.so" ["PHP_SELF"]=> string(0) "" ["argv"]=> array(1) { [0]=> string(9) "/in/JOZHC" } ["argc"]=> int(1) }