3v4l.org

run code in 300+ PHP versions simultaneously
<?php $blue = array(1,4,7,10); $red = array(2,3,5,6,8,9); $final_array = array(); for($i=0; $i<sizeof($blue); $i++) { $final_array[] = $blue[$i]; $final_array[] = $red[$i*2]; $final_array[] = $red[($i*2)+1]; } echo '<pre>'; print_r($final_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 5
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 5
Branch analysis from position: 21
Branch analysis from position: 5
filename:       /in/YXpRS
function name:  (null)
number of ops:  26
compiled vars:  !0 = $blue, !1 = $red, !2 = $final_array, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    7     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->18
    9     5    >   FETCH_DIM_R                                      ~9      !0, !3
          6        ASSIGN_DIM                                               !2
          7        OP_DATA                                                  ~9
   11     8        MUL                                              ~11     !3, 2
          9        FETCH_DIM_R                                      ~12     !1, ~11
         10        ASSIGN_DIM                                               !2
         11        OP_DATA                                                  ~12
   12    12        MUL                                              ~14     !3, 2
         13        ADD                                              ~15     ~14, 1
         14        FETCH_DIM_R                                      ~16     !1, ~15
         15        ASSIGN_DIM                                               !2
         16        OP_DATA                                                  ~16
    7    17        PRE_INC                                                  !3
         18    >   COUNT                                            ~18     !0
         19        IS_SMALLER                                               !3, ~18
         20      > JMPNZ                                                    ~19, ->5
   15    21    >   ECHO                                                     '%3Cpre%3E'
         22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.47 ms | 1395 KiB | 15 Q