3v4l.org

run code in 300+ PHP versions simultaneously
<?php function rec_mod($d=0, $n=25, $l=10) { for ($i=$d; $i<$l; $i++) { return rec_mod (++$d, ++$n, --$l); } } echo rec_mod();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/91hO9
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'rec_mod'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

Function rec_mod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/91hO9
function name:  rec_mod
number of ops:  18
compiled vars:  !0 = $d, !1 = $n, !2 = $l, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      0
          1        RECV_INIT                                        !1      25
          2        RECV_INIT                                        !2      10
    4     3        ASSIGN                                                   !3, !0
          4      > JMP                                                      ->15
    5     5    >   INIT_FCALL_BY_NAME                                       'rec_mod'
          6        PRE_INC                                          ~5      !0
          7        SEND_VAL_EX                                              ~5
          8        PRE_INC                                          ~6      !1
          9        SEND_VAL_EX                                              ~6
         10        PRE_DEC                                          ~7      !2
         11        SEND_VAL_EX                                              ~7
         12        DO_FCALL                                      0  $8      
         13      > RETURN                                                   $8
    4    14*       PRE_INC                                                  !3
         15    >   IS_SMALLER                                               !3, !2
         16      > JMPNZ                                                    ~10, ->5
    7    17    > > RETURN                                                   null

End of function rec_mod

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180 ms | 1398 KiB | 14 Q