3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r($_ENV); var_dump(urlencode(PHP_EOL)); system('-ls');
based on N99Om
Output for 5.0.2 - 5.6.28, 7.0.0 - 7.1.0
Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIN] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [USERNAME] => nobody [HOME] => / ) string(3) "%0A"
Output for hhvm-3.13.2
Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIN] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [USERNAME] => nobody [HOME] => / [GLIBCPP_FORCE_NEW] => 1 [GLIBCXX_FORCE_NEW] => 1 [UNW_RBP_ALWAYS_VALID] => 1 [HPHP] => 1 [HHVM] => 1 [HHVM_ARCH] => x64 ) string(3) "%0A" Failed to exec: `-ls'
Output for hhvm-3.10.0 - 3.12.0
Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIN] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [USERNAME] => nobody [HOME] => / [GLIBCPP_FORCE_NEW] => 1 [GLIBCXX_FORCE_NEW] => 1 [HPHP] => 1 [HHVM] => 1 [HHVM_ARCH] => x64 ) string(3) "%0A" Failed to exec: `-ls'
Output for 5.0.0 - 5.0.1
Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIN] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [USERNAME] => nobody [HOME] => / ) Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MkBqM on line 3 string(7) "PHP_EOL"
Output for 4.3.10 - 4.4.9
Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIN] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [USERNAME] => nobody [HOME] => / [TIME] => 1410353560 [LD_PRELOAD] => /usr/bin/daemon-preload.so ) string(3) "%0A"
Output for 4.3.0 - 4.3.9
Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIN] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [USERNAME] => nobody [HOME] => / [TIME] => 1410353560 [LD_PRELOAD] => /usr/bin/daemon-preload.so ) Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MkBqM on line 3 string(7) "PHP_EOL"