3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.69 ms | 939 KiB | 14 Q