3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hundred = 100; ini_set('assert.exception', 1); try { assert($hundred < 50); } catch (AssertionException $e) { var_dump($e);exit; echo $e->getMessage(); }
based on Db7cT
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught AssertionError: assert($hundred < 50) in /in/6cV9i:7 Stack trace: #0 /in/6cV9i(7): assert(false, 'assert($hundred...') #1 {main} thrown in /in/6cV9i on line 7
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Warning: assert(): Assertion failed in /in/6cV9i on line 7