3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('a', 'b', 'c', 'd', null); for($i = 0; $i < count($a); $i += 2) { echo $i . " "; if (array_key_exists($i + 1, $a)) { echo $a[$i + 1] . " "; } echo ($i + 1) . PHP_EOL; } $n = explode('|', $n); var_dump($n);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
Branch analysis from position: 3
Branch analysis from position: 12
filename:       /in/DQbE3
function name:  (null)
number of ops:  28
compiled vars:  !0 = $a, !1 = $i, !2 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->16
    5     3    >   CONCAT                                           ~5      !1, '+'
          4        ECHO                                                     ~5
    6     5        ADD                                              ~6      !1, 1
          6        ARRAY_KEY_EXISTS                                         ~6, !0
          7      > JMPZ                                                     ~7, ->12
    7     8    >   ADD                                              ~8      !1, 1
          9        FETCH_DIM_R                                      ~9      !0, ~8
         10        CONCAT                                           ~10     ~9, '+'
         11        ECHO                                                     ~10
    9    12    >   ADD                                              ~11     !1, 1
         13        CONCAT                                           ~12     ~11, '%0A'
         14        ECHO                                                     ~12
    4    15        ASSIGN_OP                                     1          !1, 2
         16    >   COUNT                                            ~14     !0
         17        IS_SMALLER                                               !1, ~14
         18      > JMPNZ                                                    ~15, ->3
   12    19    >   INIT_FCALL                                               'explode'
         20        SEND_VAL                                                 '%7C'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $16     
         23        ASSIGN                                                   !2, $16
   13    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.53 ms | 1388 KiB | 17 Q