3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $arr = array(); while ($i < 10) { $arr[] = $i; $arr["$i key"] = "$i value"; $i++; } foreach ($arr as $k => $v) { var_dump($k, $v); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 22
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/SoD8P
function name:  (null)
number of ops:  24
compiled vars:  !0 = $i, !1 = $arr, !2 = $v, !3 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN                                                   !1, <array>
    4     2      > JMP                                                      ->12
    5     3    >   ASSIGN_DIM                                               !1
          4        OP_DATA                                                  !0
    6     5        NOP                                                      
          6        FAST_CONCAT                                      ~7      !0, '+key'
          7        NOP                                                      
          8        FAST_CONCAT                                      ~9      !0, '+value'
          9        ASSIGN_DIM                                               !1, ~7
         10        OP_DATA                                                  ~9
    7    11        PRE_INC                                                  !0
    4    12    >   IS_SMALLER                                               !0, 10
         13      > JMPNZ                                                    ~11, ->3
    9    14    > > FE_RESET_R                                       $12     !1, ->22
         15    > > FE_FETCH_R                                       ~13     $12, !2, ->22
         16    >   ASSIGN                                                   !3, ~13
   10    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !3
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
    9    21      > JMP                                                      ->15
         22    >   FE_FREE                                                  $12
   11    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.31 ms | 1395 KiB | 15 Q