3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r($_ENV); echo PHP_EOL . '=============' . PHP_EOL; system('xterm');
based on 1sI6N
Output for 5.4.39 - 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] => / ) =============
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 ) ============= Failed to exec: `xterm'
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.4.38
Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIN] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [USERNAME] => nobody [HOME] => / ) ============= sh: 1: xterm: not found
Output for 4.3.1 - 4.3.9, 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/sNkfT on line 3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sNkfT on line 3 PHP_EOL=============PHP_EOLsh: 1: xterm: not found
Output for 4.3.0
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/sNkfT on line 3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sNkfT on line 3 PHP_EOL=============PHP_EOL