3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(); for($i = 1; $i<=150; $i++){ $array[$i] = $i; } function walk($a, $index = 150){ if (c-1 == $index -1) { echo($a[$index]); } else { echo($a[$index]); walk($a, $index -1); } } walk($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
Branch analysis from position: 3
filename:       /in/M1jHm
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->6
    4     3    >   ASSIGN_DIM                                               !0, !1
          4        OP_DATA                                                  !1
    3     5        PRE_INC                                                  !1
          6    >   IS_SMALLER_OR_EQUAL                                      !1, 150
          7      > JMPNZ                                                    ~6, ->3
   18     8    >   INIT_FCALL                                               'walk'
          9        SEND_VAR                                                 !0
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Function walk:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M1jHm
function name:  walk
number of ops:  18
compiled vars:  !0 = $a, !1 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      150
    8     2        FETCH_CONSTANT                                   ~2      'c'
          3        SUB                                              ~3      ~2, 1
          4        SUB                                              ~4      !1, 1
          5        IS_EQUAL                                                 ~3, ~4
          6      > JMPZ                                                     ~5, ->10
    9     7    >   FETCH_DIM_R                                      ~6      !0, !1
          8        ECHO                                                     ~6
          9      > JMP                                                      ->17
   11    10    >   FETCH_DIM_R                                      ~7      !0, !1
         11        ECHO                                                     ~7
   12    12        INIT_FCALL_BY_NAME                                       'walk'
         13        SEND_VAR_EX                                              !0
         14        SUB                                              ~8      !1, 1
         15        SEND_VAL_EX                                              ~8
         16        DO_FCALL                                      0          
   16    17    > > RETURN                                                   null

End of function walk

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.48 ms | 1399 KiB | 14 Q