3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 0; $i < 5; $i++){ try { throw new \Exception('not okay'); } catch(\Exception $e) { var_dump('1'); } var_dump('2'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
Branch analysis from position: 2
filename:       /in/mWE8d
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->15
    6     2    >   NEW                                              $3      'Exception'
          3        SEND_VAL_EX                                              'not+okay'
          4        DO_FCALL                                      0          
          5      > THROW                                         0          $3
          6*       JMP                                                      ->11
    7     7  E > > CATCH                                       last         'Exception'
    8     8    >   INIT_FCALL                                               'var_dump'
          9        SEND_VAL                                                 '1'
         10        DO_ICALL                                                 
   11    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAL                                                 '2'
         13        DO_ICALL                                                 
    4    14        PRE_INC                                                  !0
         15    >   IS_SMALLER                                               !0, 5
         16      > JMPNZ                                                    ~8, ->2
   12    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.41 ms | 1399 KiB | 15 Q