3v4l.org

run code in 300+ PHP versions simultaneously
<?php // this makes ob_end_clean raise an error ob_end_flush(); class ExceptionHandler { public function __invoke (Exception $e) { // this triggers the custom error handler ob_end_clean(); } } // this must be a class, closure does not trigger segfault set_exception_handler(new ExceptionHandler()); // exception must be throwed from error handler. set_error_handler(function() { $e = new Exception; $e->_trace = debug_backtrace(); throw $e; }); // trigger error handler $a['waa'];
Output for git.master, git.master_jit, rfc.property-hooks
Notice: ob_end_flush(): Failed to delete and flush buffer. No buffer to delete or flush in /in/VpaOO on line 4 Deprecated: Creation of dynamic property Exception::$_trace is deprecated in /in/VpaOO on line 21 Deprecated: Creation of dynamic property Exception::$_trace is deprecated in /in/VpaOO on line 21 Fatal error: Uncaught Exception in /in/VpaOO:20 Stack trace: #0 [internal function]: {closure}(8, 'ob_end_clean():...', '/in/VpaOO', 10) #1 /in/VpaOO(10): ob_end_clean() #2 [internal function]: ExceptionHandler->__invoke(Object(Exception)) #3 {main} thrown in /in/VpaOO on line 20
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

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


preferences:
42.21 ms | 402 KiB | 8 Q