3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('assert.exception', 1); class CustomError extends AssertionError {} assert(false, new CustomError('Some error message'));
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught CustomError: Some error message in /in/a2cPp:6 Stack trace: #0 {main} thrown in /in/a2cPp on line 6
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Class 'AssertionError' not found in /in/a2cPp on line 4
Process exited with code 255.