3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { try { echo 'try'; throw new \Exception('1'); } catch (\Exception $e) { echo 'catch'; throw new \Exception('2'); } finally { echo 'finally'; throw new \Exception('3'); } } catch (\Exception $e) { var_dump($e); } echo 'lolo';
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
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 21
Branch analysis from position: 21
2 jumps found. (Code = 107) Position 1 = 22, Position 2 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HlPPjo
function name:  (null)
number of ops:  27
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'try'
    5     1        NEW                                              $2      'Exception'
          2        SEND_VAL_EX                                              '1'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $2
          5*       JMP                                                      ->12
    6     6  E > > CATCH                                       last         'Exception'
    7     7    >   ECHO                                                     'catch'
    8     8        NEW                                              $4      'Exception'
          9        SEND_VAL_EX                                              '2'
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $4
    9    12*       FAST_CALL                                                ->14
         13*       JMP                                                      ->20
   10    14*       ECHO                                                     'finally'
   11    15*       NEW                                              $6      'Exception'
         16*       SEND_VAL_EX                                              '3'
         17*       DO_FCALL                                      0          
         18*       THROW                                         0          $6
         19*       FAST_RET                                                 
         20*       JMP                                                      ->25
   13    21  E > > CATCH                                       last         'Exception'
   14    22    >   INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
   17    25        ECHO                                                     'lolo'
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.43 ms | 1395 KiB | 15 Q