3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new \Exception('1'); } catch (\Exception $ex1) { echo "c1"; throw new \Exception('2'); } finally { ech('1'); } function ech ($a) { echo $a; }
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/8Kuok
function name:  (null)
number of ops:  18
compiled vars:  !0 = $ex1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $2      'Exception'
          1        SEND_VAL_EX                                              '1'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $2
          4*       JMP                                                      ->11
    6     5  E > > CATCH                                       last         'Exception'
    7     6    >   ECHO                                                     'c1'
    8     7        NEW                                              $4      'Exception'
          8        SEND_VAL_EX                                              '2'
          9        DO_FCALL                                      0          
         10      > THROW                                         0          $4
    9    11*       FAST_CALL                                                ->13
         12*       JMP                                                      ->17
   10    13*       INIT_FCALL_BY_NAME                                       'ech'
         14*       SEND_VAL_EX                                              '1'
         15*       DO_FCALL                                      0          
         16*       FAST_RET                                                 
   15    17*     > RETURN                                                   1

Function ech:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Kuok
function name:  ech
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   14     1        ECHO                                                     !0
   15     2      > RETURN                                                   null

End of function ech

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.66 ms | 1394 KiB | 13 Q