3v4l.org

run code in 300+ PHP versions simultaneously
<?php function retry($retries) { while($retries--){ try { throw new \Exception(); return; } catch (\Exception $e) {} } throw new \Exception('', 0, $e); } retry(5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/itX6J
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'retry'
          1        SEND_VAL                                                 5
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function retry:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
1 jumps found. (Code = 108) 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
filename:       /in/itX6J
function name:  retry
number of ops:  17
compiled vars:  !0 = $retries, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1      > JMP                                                      ->8
    6     2    >   NEW                                              $2      'Exception'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $2
    7     5*       RETURN                                                   null
          6*       JMP                                                      ->8
    8     7  E > > CATCH                                       last         'Exception'
    4     8    >   POST_DEC                                         ~4      !0
          9      > JMPNZ                                                    ~4, ->2
   10    10    >   NEW                                              $5      'Exception'
         11        SEND_VAL_EX                                              ''
         12        SEND_VAL_EX                                              0
         13        SEND_VAR_EX                                              !1
         14        DO_FCALL                                      0          
         15      > THROW                                         0          $5
   11    16*     > RETURN                                                   null

End of function retry

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.2 ms | 1397 KiB | 14 Q