3v4l.org

run code in 300+ PHP versions simultaneously
<?php function rec_mod($d=0, $n=25, $l=10) { $k=0; for ($i=$d; $i<$l; $i++) { $k += rec_mod (++$d, ++$n, --$l); } return $k; } echo rec_mod();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8dIVS
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     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 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
Branch analysis from position: 6
filename:       /in/8dIVS
function name:  rec_mod
number of ops:  20
compiled vars:  !0 = $d, !1 = $n, !2 = $l, !3 = $k, !4 = $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
    5     4        ASSIGN                                                   !4, !0
          5      > JMP                                                      ->16
    6     6    >   INIT_FCALL_BY_NAME                                       'rec_mod'
          7        PRE_INC                                          ~7      !0
          8        SEND_VAL_EX                                              ~7
          9        PRE_INC                                          ~8      !1
         10        SEND_VAL_EX                                              ~8
         11        PRE_DEC                                          ~9      !2
         12        SEND_VAL_EX                                              ~9
         13        DO_FCALL                                      0  $10     
         14        ASSIGN_OP                                     1          !3, $10
    5    15        PRE_INC                                                  !4
         16    >   IS_SMALLER                                               !4, !2
         17      > JMPNZ                                                    ~13, ->6
    8    18    > > RETURN                                                   !3
    9    19*     > RETURN                                                   null

End of function rec_mod

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.91 ms | 1399 KiB | 14 Q