3v4l.org

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