3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump($_ENV); var_dump(__FILE__); echo file_get_contents(__FILE__); system('who'); echo 1;
based on hZLJl
Output for 4.3.0, 5.4.39 - 7.1.0
array(9) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" } string(9) "/in/cMibm" <?php var_dump($_ENV); var_dump(__FILE__); echo file_get_contents(__FILE__); system('who'); echo 1;1
Output for 4.3.1 - 5.4.38
array(9) { ["TERM"]=> string(5) "xterm" ["PATH"]=> string(13) "/usr/bin:/bin" ["LANG"]=> string(1) "C" ["SHELL"]=> string(7) "/bin/sh" ["MAIN"]=> string(16) "/var/mail/nobody" ["LOGNAME"]=> string(6) "nobody" ["USER"]=> string(6) "nobody" ["USERNAME"]=> string(6) "nobody" ["HOME"]=> string(1) "/" } string(9) "/in/cMibm" <?php var_dump($_ENV); var_dump(__FILE__); echo file_get_contents(__FILE__); system('who'); echo 1;1sh: 1: who: not found