3v4l.org

run code in 200+ PHP versions simultaneously
<?php error_reporting(E_ALL); assert_options(ASSERT_QUIET_EVAL, 1); assert('$foo');
Output for 7.2.0 - 7.4.6
Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/k2rbK on line 5 Warning: assert(): Assertion "$foo" failed in /in/k2rbK on line 5
Output for 7.1.0 - 7.1.25
Warning: assert(): Assertion "$foo" failed in /in/k2rbK on line 5