3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['a' => 1, 'b' => 2, 'c' => 3]; var_dump(key($array)); foreach($array as $a) { var_dump(key($array)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/L89Bv
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'key'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                                 
    6     7      > FE_RESET_R                                       $5      !0, ->16
          8    > > FE_FETCH_R                                               $5, !1, ->16
    7     9    >   INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'key'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                                 
    6    15      > JMP                                                      ->8
         16    >   FE_FREE                                                  $5
    8    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.74 ms | 1395 KiB | 17 Q