3v4l.org

run code in 300+ PHP versions simultaneously
<?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

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch master
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) #1 /in/XukW5(9): trigger_error('see? no problem') #2 {main} thrown in /in/XukW5 on line 9
Process exited with code 255.
Output for branch partials
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) #1 /in/XukW5(9): trigger_error('see? no problem') #2 {main} thrown in /in/XukW5 on line 9
Process exited with code 255.

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page