3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php assert("echo 'TEST';");
based on XiGNT
Output for 7.2.0
Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/qBhb2 on line 3 Fatal error: Uncaught ParseError: syntax error, unexpected 'echo' (T_ECHO), expecting ';' in /in/qBhb2(3) : assert code:1 Stack trace: #0 /in/qBhb2(3): assert('echo 'TEST';') #1 {main} Next Error: Failure evaluating code: echo 'TEST'; in /in/qBhb2:3 Stack trace: #0 /in/qBhb2(3): assert('echo 'TEST';') #1 {main} thrown in /in/qBhb2 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), expecting ';' in /in/qBhb2(3) : assert code:1 Stack trace: #0 /in/qBhb2(3): assert('echo 'TEST';') #1 {main} Next Error: Failure evaluating code: echo 'TEST'; in /in/qBhb2:3 Stack trace: #0 /in/qBhb2(3): assert('echo 'TEST';') #1 {main} thrown in /in/qBhb2 on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting ';' in /in/qBhb2(3) : assert code on line 1 Catchable fatal error: assert(): Failure evaluating code: echo 'TEST'; in /in/qBhb2 on line 3
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/qBhb2(3) : assert code on line 1 Catchable fatal error: assert(): Failure evaluating code: echo 'TEST'; in /in/qBhb2 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/qBhb2(3) : assert code on line 1 Catchable fatal error: assert(): Failure evaluating code: echo 'TEST'; in /in/qBhb2 on line 3
Process exited with code 255.