3v4l.org

run code in 300+ PHP versions simultaneously
<?php throw new MyException('This is a really bad error', 123); /* final public ExceptionException::getPrevious ( void ) error_reporting(E_ALL); function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, '00007600', $errno, $errfile, $errline, new Exception('jjj')); } set_error_handler("exception_error_handler"); try { echo $x; } catch(Exception $e) { var_dump($e->getPrevious()); }*/
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/T7509
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $0      'MyException'
          1        SEND_VAL_EX                                              'This+is+a+really+bad+error'
          2        SEND_VAL_EX                                              123
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $0
   29     5*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.73 ms | 1392 KiB | 13 Q