3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.78 ms | 1396 KiB | 15 Q