3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php eval(whoami); ?>
Output for 7.2.0
Warning: Use of undefined constant whoami - assumed 'whoami' (this will throw an Error in a future version of PHP) in /in/WLRUN on line 2 Parse error: syntax error, unexpected end of file in /in/WLRUN(2) : eval()'d code on line 1
Process exited with code 255.
Output for 5.4.2 - 5.4.10, 7.0.0 - 7.1.10
Notice: Use of undefined constant whoami - assumed 'whoami' in /in/WLRUN on line 2 Parse error: syntax error, unexpected end of file in /in/WLRUN(2) : eval()'d code on line 1
Process exited with code 255.
Output for 5.4.11 - 5.6.28
Notice: Use of undefined constant whoami - assumed 'whoami' in /in/WLRUN on line 2 Parse error: syntax error, unexpected end of file in /in/WLRUN(2) : eval()'d code on line 1
Output for 5.3.18 - 5.3.29
Notice: Use of undefined constant whoami - assumed 'whoami' in /in/WLRUN on line 2 Parse error: syntax error, unexpected $end in /in/WLRUN(2) : eval()'d code on line 1
Process exited with code 255.