3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { try { throw new \ArithmeticError("Foo"); } finally { throw new \LogicException("Bar", 0, null); } } catch (\Throwable $e) { print_r($e); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 14
Branch analysis from position: 14
2 jumps found. (Code = 107) Position 1 = 15, Position 2 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IsrCd
function name:  (null)
number of ops:  19
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $2      'ArithmeticError'
          1        SEND_VAL_EX                                              'Foo'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $2
    5     4*       FAST_CALL                                                ->6
          5*       JMP                                                      ->13
    6     6*       NEW                                              $4      'LogicException'
          7*       SEND_VAL_EX                                              'Bar'
          8*       SEND_VAL_EX                                              0
          9*       SEND_VAL_EX                                              null
         10*       DO_FCALL                                      0          
         11*       THROW                                         0          $4
         12*       FAST_RET                                                 
         13*       JMP                                                      ->18
    8    14  E > > CATCH                                       last         'Throwable'
    9    15    >   INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
   10    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
20.58 ms | 416 KiB | 14 Q