3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach($_SERVER as $k => $v) { if(is_string($v)) { echo("$k => $v "); } else if(is_array($v)) { foreach($v as $k => $inv) { ech("$k => $inv "); } } }
based on sQulo
Output for 7.0.0 - 7.2.0
TERM => xterm PATH => /usr/bin:/bin LANG => C SHELL => /bin/sh MAIN => /var/mail/nobody LOGNAME => nobody USER => nobody USERNAME => nobody HOME => / PHP_SELF => /in/9MG6E SCRIPT_NAME => /in/9MG6E SCRIPT_FILENAME => /in/9MG6E PATH_TRANSLATED => /in/9MG6E DOCUMENT_ROOT => Fatal error: Uncaught Error: Call to undefined function ech() in /in/9MG6E:10 Stack trace: #0 {main} thrown in /in/9MG6E on line 10
Process exited with code 255.
Output for 5.3.20 - 5.6.28
TERM => xterm PATH => /usr/bin:/bin LANG => C SHELL => /bin/sh MAIN => /var/mail/nobody LOGNAME => nobody USER => nobody USERNAME => nobody HOME => / PHP_SELF => /in/9MG6E SCRIPT_NAME => /in/9MG6E SCRIPT_FILENAME => /in/9MG6E PATH_TRANSLATED => /in/9MG6E DOCUMENT_ROOT => Fatal error: Call to undefined function ech() in /in/9MG6E on line 10
Process exited with code 255.