3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php assert("false === preg_match('(Hello World)', 'Lorem'");
Output for 7.1.0
Fatal error: Uncaught ParseError: syntax error, unexpected ';', expecting ',' or ')' in /in/vEOIG(3) : assert code:1 Stack trace: #0 /in/vEOIG(3): assert('false === preg_...') #1 {main} Next Error: Failure evaluating code: false === preg_match('(Hello World)', 'Lorem' in /in/vEOIG:3 Stack trace: #0 /in/vEOIG(3): assert('false === preg_...') #1 {main} thrown in /in/vEOIG on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.14
Parse error: syntax error, unexpected ';', expecting ',' or ')' in /in/vEOIG(3) : assert code on line 1 Catchable fatal error: assert(): Failure evaluating code: false === preg_match('(Hello World)', 'Lorem' in /in/vEOIG on line 3
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: syntax error, unexpected ';', expecting ')'
Process exited with code 255.
Output for hhvm-3.10.0
Output for 5.2.0 - 5.6.28
Parse error: syntax error, unexpected ';' in /in/vEOIG(3) : assert code on line 1 Catchable fatal error: assert(): Failure evaluating code: false === preg_match('(Hello World)', 'Lorem' in /in/vEOIG on line 3
Process exited with code 255.
Output for 5.1.0 - 5.1.6
Parse error: syntax error, unexpected ';' in /in/vEOIG(3) : assert code on line 1 Fatal error: assert(): Failure evaluating code: false === preg_match('(Hello World)', 'Lorem' in /in/vEOIG on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected ';' in /in/vEOIG(3) : assert code on line 1 Fatal error: assert(): Failure evaluating code: false === preg_match('(Hello World)', 'Lorem' in /in/vEOIG on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ';' in /in/vEOIG(3) : assert code on line 1 Fatal error: Failure evaluating code: false === preg_match('(Hello World)', 'Lorem' in /in/vEOIG on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected ';' in /in/vEOIG(3) : assert code on line 1 Fatal error: Failure evaluating code: false === preg_match('(Hello World)', 'Lorem' in /in/vEOIG on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/vEOIG(3) : assert code on line 1 Fatal error: Failure evaluating code: false === preg_match('(Hello World)', 'Lorem' in /in/vEOIG on line 3
Process exited with code 255.