3v4l.org

run code in 300+ PHP versions simultaneously
<?php function retry($retries) { beginning: try { throw new \Exception(); } catch (\Exception $e) { if (!$retries) { throw new FailingTooHardException('', 0, $e); } $retries--; goto beginning; } } retry(5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7eKeH
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     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 = 108) 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 = 43) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
filename:       /in/7eKeH
function name:  retry
number of ops:  18
compiled vars:  !0 = $retries, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    5     1    >   NOP                                                      
    6     2        NEW                                              $2      'Exception'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $2
          5*       JMP                                                      ->17
    7     6  E > > CATCH                                       last         'Exception'
    8     7    >   BOOL_NOT                                         ~4      !0
          8      > JMPZ                                                     ~4, ->15
    9     9    >   NEW                                              $5      'FailingTooHardException'
         10        SEND_VAL_EX                                              ''
         11        SEND_VAL_EX                                              0
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0          
         14      > THROW                                         0          $5
   11    15    >   PRE_DEC                                                  !0
   12    16      > JMP                                                      ->1
   14    17*     > RETURN                                                   null

End of function retry

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.39 ms | 1398 KiB | 14 Q