3v4l.org

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

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

End of function retry

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.46 ms | 1394 KiB | 13 Q