3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=['a','b']; $target_path_arr = array(); for ($i = 0; $i < count($x); $i++) { $target_path = $x[$i]; $target_path_arr[] = $target_path; // use this in future echo $target_path." img ".$i+1;//."<br>"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
Branch analysis from position: 4
filename:       /in/G2rbV
function name:  (null)
number of ops:  17
compiled vars:  !0 = $x, !1 = $target_path_arr, !2 = $i, !3 = $target_path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->13
    5     4    >   FETCH_DIM_R                                      ~7      !0, !2
          5        ASSIGN                                                   !3, ~7
    6     6        ASSIGN_DIM                                               !1
          7        OP_DATA                                                  !3
    7     8        CONCAT                                           ~10     !3, '+img+'
          9        ADD                                              ~11     !2, 1
         10        CONCAT                                           ~12     ~10, ~11
         11        ECHO                                                     ~12
    4    12        PRE_INC                                                  !2
         13    >   COUNT                                            ~14     !0
         14        IS_SMALLER                                               !2, ~14
         15      > JMPNZ                                                    ~15, ->4
    8    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.07 ms | 1393 KiB | 13 Q