3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = [1 => true]; next($data); var_dump(key($data)); $data[0] = true; var_dump(key($data));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DoFve
function name:  (null)
number of ops:  19
compiled vars:  !0 = $data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        INIT_FCALL                                                   'next'
          2        SEND_REF                                                     !0
          3        DO_ICALL                                                     
    4     4        INIT_FCALL                                                   'var_dump'
          5        INIT_FCALL                                                   'key'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $3      
          8        SEND_VAR                                                     $3
          9        DO_ICALL                                                     
    5    10        ASSIGN_DIM                                                   !0, 0
         11        OP_DATA                                                      <true>
    6    12        INIT_FCALL                                                   'var_dump'
         13        INIT_FCALL                                                   'key'
         14        SEND_VAR                                                     !0
         15        DO_ICALL                                             $6      
         16        SEND_VAR                                                     $6
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.03 ms | 3180 KiB | 16 Q