3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('a0', 'a1', 'a2', 'a3', 'a4', 'a5'); $b = array('b0', 'b1', 'b2', 'b3', 'b4', 'b5'); for($i = 0, $sum = count($a); $i < $sum; $i+=2){ if ($i % 2 == 0) echo $a[$i] . ' ' . $b[$i] . ' ' . $a[$i + 1] . ' ' . $b[$i + 1] . "<br>"; else echo $b[$i] . ' ' . $a[$i] . ' ' . $b[$i + 1] . ' ' . $a[$i + 1] . "<br>"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 6
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 24
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 6
Branch analysis from position: 41
Branch analysis from position: 6
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 6
Branch analysis from position: 41
Branch analysis from position: 6
filename:       /in/VV0GN
function name:  (null)
number of ops:  42
compiled vars:  !0 = $a, !1 = $b, !2 = $i, !3 = $sum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, 0
          3        COUNT                                            ~7      !0
          4        ASSIGN                                                   !3, ~7
          5      > JMP                                                      ->39
    8     6    >   MOD                                              ~9      !2, 2
          7        IS_EQUAL                                                 ~9, 0
          8      > JMPZ                                                     ~10, ->24
    9     9    >   FETCH_DIM_R                                      ~11     !0, !2
         10        CONCAT                                           ~12     ~11, '+'
         11        FETCH_DIM_R                                      ~13     !1, !2
         12        CONCAT                                           ~14     ~12, ~13
         13        CONCAT                                           ~15     ~14, '+'
         14        ADD                                              ~16     !2, 1
         15        FETCH_DIM_R                                      ~17     !0, ~16
         16        CONCAT                                           ~18     ~15, ~17
         17        CONCAT                                           ~19     ~18, '+'
         18        ADD                                              ~20     !2, 1
         19        FETCH_DIM_R                                      ~21     !1, ~20
         20        CONCAT                                           ~22     ~19, ~21
         21        CONCAT                                           ~23     ~22, '%3Cbr%3E'
         22        ECHO                                                     ~23
         23      > JMP                                                      ->38
   11    24    >   FETCH_DIM_R                                      ~24     !1, !2
         25        CONCAT                                           ~25     ~24, '+'
         26        FETCH_DIM_R                                      ~26     !0, !2
         27        CONCAT                                           ~27     ~25, ~26
         28        CONCAT                                           ~28     ~27, '+'
         29        ADD                                              ~29     !2, 1
         30        FETCH_DIM_R                                      ~30     !1, ~29
         31        CONCAT                                           ~31     ~28, ~30
         32        CONCAT                                           ~32     ~31, '+'
         33        ADD                                              ~33     !2, 1
         34        FETCH_DIM_R                                      ~34     !0, ~33
         35        CONCAT                                           ~35     ~32, ~34
         36        CONCAT                                           ~36     ~35, '%3Cbr%3E'
         37        ECHO                                                     ~36
    6    38    >   ASSIGN_OP                                     1          !2, 2
         39    >   IS_SMALLER                                               !2, !3
         40      > JMPNZ                                                    ~38, ->6
   12    41    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.59 ms | 1399 KiB | 13 Q