3v4l.org

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

Function igorw%5Cretry:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) 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 = 43) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uCESZ
function name:  igorw\retry
number of ops:  23
compiled vars:  !0 = $retries, !1 = $fn, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        NOP                                                      
   11     3        INIT_DYNAMIC_CALL                                        !1
          4        DO_FCALL                                      0  $3      
          5      > RETURN                                                   $3
          6*       JMP                                                      ->22
   12     7  E > > CATCH                                       last         'Exception'
   13     8    >   BOOL_NOT                                         ~4      !0
          9      > JMPZ                                                     ~4, ->16
   14    10    >   NEW                                              $5      'igorw%5CFailingTooHardException'
         11        SEND_VAL_EX                                              ''
         12        SEND_VAL_EX                                              0
         13        SEND_VAR_EX                                              !2
         14        DO_FCALL                                      0          
         15      > THROW                                         0          $5
   16    16    >   INIT_NS_FCALL_BY_NAME                                    'igorw%5Cretry'
         17        SUB                                              ~7      !0, 1
         18        SEND_VAL_EX                                              ~7
         19        SEND_VAR_EX                                              !1
         20        DO_FCALL                                      0  $8      
         21      > RETURN                                                   $8
   18    22*     > RETURN                                                   null

End of function igorw%5Cretry

Class igorw\FailingTooHardException: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.2 ms | 1390 KiB | 14 Q