3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (version_compare(PHP_VERSION, '7.0.0-dev') < 0) { assert_options(ASSERT_CALLBACK, function($file, $line, $code, $message = '') { if (empty($message)) { $message = $code; } var_dump(array($message)); }); } assert('FALSE');
based on bpunR
Output for 7.2.0
Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/MjoBX on line 12 Warning: assert(): Assertion "FALSE" failed in /in/MjoBX on line 12
Output for 7.0.0 - 7.1.10
Warning: assert(): Assertion "FALSE" failed in /in/MjoBX on line 12
Output for 5.3.0 - 5.6.28
array(1) { [0]=> string(5) "FALSE" } Warning: assert(): Assertion "FALSE" failed in /in/MjoBX on line 12
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/MjoBX on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/MjoBX on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/MjoBX on line 4
Process exited with code 255.