3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hundred = 100; ini_set('assert.exception', 1); try { assert($hundred < 50); } catch (AssertionError $e) { echo $e->getMessage(); }
based on 6cV9i
Output for 7.0.0 - 7.2.0
assert($hundred < 50)
Output for 5.3.20 - 5.6.28
Warning: assert(): Assertion failed in /in/jSH17 on line 7