3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump($_ENV);
Output for 4.3.0 - 5.6.28, 7.0.0 - 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) "/" }
Output for hhvm-3.13.2
array(15) { ["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) "/" ["GLIBCPP_FORCE_NEW"]=> string(1) "1" ["GLIBCXX_FORCE_NEW"]=> string(1) "1" ["UNW_RBP_ALWAYS_VALID"]=> string(1) "1" ["HPHP"]=> int(1) ["HHVM"]=> int(1) ["HHVM_ARCH"]=> string(3) "x64" }
Output for hhvm-3.10.0 - 3.12.0
array(14) { ["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) "/" ["GLIBCPP_FORCE_NEW"]=> string(1) "1" ["GLIBCXX_FORCE_NEW"]=> string(1) "1" ["HPHP"]=> int(1) ["HHVM"]=> int(1) ["HHVM_ARCH"]=> string(3) "x64" }