3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php assert('false'); assert('false', null); assert('false', "Something bad happened");
based on S4bS9
Output for 7.2.0 - 7.3.0rc4
Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/NeLcB on line 3 Warning: assert(): Assertion "false" failed in /in/NeLcB on line 3 Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/NeLcB on line 4 Warning: assert(): : "false" failed in /in/NeLcB on line 4 Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/NeLcB on line 5 Warning: assert(): Something bad happened: "false" failed in /in/NeLcB on line 5
Output for 7.0.0 - 7.1.20
Warning: assert(): Assertion "false" failed in /in/NeLcB on line 3 Warning: assert(): : "false" failed in /in/NeLcB on line 4 Warning: assert(): Something bad happened: "false" failed in /in/NeLcB on line 5
Output for 5.4.10 - 5.6.28
Warning: assert(): Assertion "false" failed in /in/NeLcB on line 3 Warning: assert(): Assertion "false" failed in /in/NeLcB on line 4 Warning: assert(): Something bad happened: "false" failed in /in/NeLcB on line 5
Output for 5.3.20 - 5.3.29
Warning: assert(): Assertion "false" failed in /in/NeLcB on line 3 Warning: assert() expects exactly 1 parameter, 2 given in /in/NeLcB on line 4 Warning: assert() expects exactly 1 parameter, 2 given in /in/NeLcB on line 5