3v4l.org

run code in 300+ PHP versions simultaneously
<?php function () { echo "lolwut"; } (); $a = '\x7f'; ${a}(); ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Parse error: syntax error, unexpected character 0x7F, expecting "(" in /in/vQhEq on line 2
Process exited with code 255.
Output for 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
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.5.24 - 5.5.35, 5.6.8 - 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.

preferences:
159.02 ms | 402 KiB | 200 Q