3v4l.org

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

End of function retry

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.3 ms | 1398 KiB | 14 Q