3v4l.org

run code in 300+ PHP versions simultaneously
<?php $players = array(1 => 2, 3=>4,5=>6); $playersHlp = array_fill_keys(array_keys($players), (object) array('a' => 'b')); $playersHlp[1]->a = 'c'; var_dump($playersHlp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s4EYH
function name:  (null)
number of ops:  17
compiled vars:  !0 = $players, !1 = $playersHlp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_fill_keys'
          2        INIT_FCALL                                               'array_keys'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        CAST                                          8  ~4      <array>
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    5    10        FETCH_DIM_W                                      $7      !1, 1
         11        ASSIGN_OBJ                                               $7, 'a'
         12        OP_DATA                                                  'c'
    6    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.95 ms | 1394 KiB | 19 Q