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 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
Branch analysis from position: 3
filename:       /in/A2DtB
function name:  (null)
number of ops:  22
compiled vars:  !0 = $i, !1 = $arr, !2 = $i_key, !3 = $i_value, !4 = $v, !5 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN                                                   !1, <array>
    4     2      > JMP                                                      ->10
    5     3    >   ASSIGN_DIM                                               !1
          4        OP_DATA                                                  !0
    6     5        CAST                                          6  ~9      !2
          6        CAST                                          6  ~11     !3
          7        ASSIGN_DIM                                               !1, ~9
          8        OP_DATA                                                  ~11
    7     9        PRE_INC                                                  !0
    4    10    >   IS_SMALLER                                               !0, 10
         11      > JMPNZ                                                    ~13, ->3
    9    12    > > FE_RESET_R                                       $14     !1, ->20
         13    > > FE_FETCH_R                                       ~15     $14, !4, ->20
         14    >   ASSIGN                                                   !5, ~15
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !5
         17        SEND_VAR                                                 !4
         18        DO_ICALL                                                 
    9    19      > JMP                                                      ->13
         20    >   FE_FREE                                                  $14
   11    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.69 ms | 1395 KiB | 15 Q