3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('a', 'b', 'c', 'd'); for($i = 0; $i < count($a); $i += 2) { echo $i . " "; echo $a[$i + 1] . " "; echo ($i + 1) . PHP_EOL; }
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 = 3
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
Branch analysis from position: 3
filename:       /in/aERqL
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->13
    5     3    >   CONCAT                                           ~4      !1, '+'
          4        ECHO                                                     ~4
    6     5        ADD                                              ~5      !1, 1
          6        FETCH_DIM_R                                      ~6      !0, ~5
          7        CONCAT                                           ~7      ~6, '+'
          8        ECHO                                                     ~7
    7     9        ADD                                              ~8      !1, 1
         10        CONCAT                                           ~9      ~8, '%0A'
         11        ECHO                                                     ~9
    4    12        ASSIGN_OP                                     1          !1, 2
         13    >   COUNT                                            ~11     !0
         14        IS_SMALLER                                               !1, ~11
         15      > JMPNZ                                                    ~12, ->3
    8    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.23 ms | 1398 KiB | 13 Q