3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function () { echo "lolwut"; } (); $a = '\x7f'; ${a}(); ?>
based on 5TgKp
Output for 7.1.0 - 7.2.0
Warning: Unexpected character in input: '' (ASCII=127) state=0 in /in/vQhEq on line 2 Warning: Unexpected character in input: '' (ASCII=127) state=0 in /in/vQhEq on line 5 Parse error: syntax error, unexpected '(' in /in/vQhEq on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.20
lolwut Notice: Use of undefined constant a - assumed 'a' in /in/vQhEq on line 8 Fatal error: Uncaught Error: Call to undefined function \x7f() in /in/vQhEq:8 Stack trace: #0 {main} thrown in /in/vQhEq on line 8
Process exited with code 255.
Output for 5.3.20 - 5.6.28
lolwut Notice: Use of undefined constant a - assumed 'a' in /in/vQhEq on line 8 Fatal error: Call to undefined function \x7f() in /in/vQhEq on line 8
Process exited with code 255.