3v4l.org

run code in 300+ PHP versions simultaneously
<?php $storage = array(); $foo = &$storage[42]; $bar = &$storage[37]; $storage = array_replace($storage, array(42 => "Foo")); var_dump($storage, $foo, $bar);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hQeC3
function name:  (null)
number of ops:  16
compiled vars:  !0 = $storage, !1 = $foo, !2 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_W                                      $4      !0, 42
          2        ASSIGN_REF                                               !1, $4
    4     3        FETCH_DIM_W                                      $6      !0, 37
          4        ASSIGN_REF                                               !2, $6
    6     5        INIT_FCALL                                               'array_replace'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 <array>
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !0, $8
    8    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.74 ms | 1385 KiB | 17 Q