3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php assert("eval(echo 'test';)");
based on WTCLO
Output for 7.2.0
Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/XiGNT on line 3 Fatal error: Uncaught ParseError: syntax error, unexpected 'echo' (T_ECHO) in /in/XiGNT(3) : assert code:1 Stack trace: #0 /in/XiGNT(3): assert('eval(echo 'test...') #1 {main} Next Error: Failure evaluating code: eval(echo 'test';) in /in/XiGNT:3 Stack trace: #0 /in/XiGNT(3): assert('eval(echo 'test...') #1 {main} thrown in /in/XiGNT on line 3
Process exited with code 255.
Output for 7.1.0 - 7.1.10
Fatal error: Uncaught ParseError: syntax error, unexpected 'echo' (T_ECHO) in /in/XiGNT(3) : assert code:1 Stack trace: #0 /in/XiGNT(3): assert('eval(echo 'test...') #1 {main} Next Error: Failure evaluating code: eval(echo 'test';) in /in/XiGNT:3 Stack trace: #0 /in/XiGNT(3): assert('eval(echo 'test...') #1 {main} thrown in /in/XiGNT on line 3
Process exited with code 255.
Output for 5.4.0 - 7.0.20
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/XiGNT(3) : assert code on line 1 Catchable fatal error: assert(): Failure evaluating code: eval(echo 'test';) in /in/XiGNT on line 3
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_ECHO in /in/XiGNT(3) : assert code on line 1 Catchable fatal error: assert(): Failure evaluating code: eval(echo 'test';) in /in/XiGNT on line 3
Process exited with code 255.