3v4l.org

run code in 300+ PHP versions simultaneously
<?php $args = ['apple' => 1, 'boy' => 2]; $key = key($args); $item = $args[$key]; var_dump($key, $items);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/06TLW
function name:  (null)
number of ops:  12
compiled vars:  !0 = $args, !1 = $key, !2 = $item, !3 = $items
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'key'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    5     5        FETCH_DIM_R                                      ~7      !0, !1
          6        ASSIGN                                                   !2, ~7
    7     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !3
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.42 ms | 1394 KiB | 17 Q