3v4l.org

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