3v4l.org

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

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

End of function retry

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.56 ms | 1385 KiB | 13 Q