3v4l.org

run code in 500+ PHP versions simultaneously
<?php try { throw new RuntimeException("Wee"); } catch (\Throwable $t) { var_dump($t); throw new Exception("Weee+Weee"); } finally { echo "I get executed no matter what."; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 5
Branch analysis from position: 5
2 jumps found. (Code = 107) Position 1 = 6, Position 2 = -2
Branch analysis from position: 6
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/gA7Y1
function name:  (null)
number of ops:  18
compiled vars:  !0 = $t
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'RuntimeException'
          1        SEND_VAL_EX                                                  'Wee'
          2        DO_FCALL                                          0          
          3      > THROW                                             0          $2
          4*       JMP                                                          ->13
    4     5  E > > CATCH                                           last         'Throwable'
    5     6    >   INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                                     
    6     9        NEW                                                  $5      'Exception'
         10        SEND_VAL_EX                                                  'Weee%2BWeee'
         11        DO_FCALL                                          0          
         12      > THROW                                             0          $5
    7    13*       FAST_CALL                                                    ->15
         14*       JMP                                                          ->17
    8    15*       ECHO                                                         'I+get+executed+no+matter+what.'
         16*       FAST_RET                                                     
    9    17*     > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
232.98 ms | 2728 KiB | 14 Q