3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trigger_error('this is no problem - just a notice'); set_error_handler(function ($s, $m, $f, $l) { throw new ErrorException($m, 0, $s, $f, $l); }); echo "this will still work fine:"; @trigger_error('see? no problem'); echo "\nthis, however, will not:"; trigger_error('problems');
based on 222oU
Output for 7.1.25 - 7.3.5
Notice: this is no problem - just a notice in /in/XukW5 on line 3 this will still work fine: Fatal error: Uncaught ErrorException: see? no problem in /in/XukW5:9 Stack trace: #0 [internal function]: {closure}(1024, 'see? no problem', '/in/XukW5', 9, Array) #1 /in/XukW5(9): trigger_error('see? no problem') #2 {main} thrown in /in/XukW5 on line 9
Process exited with code 255.