3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( "foo" => "bar", "bar" => "foo", $array ["foo"] );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RjGDI
function name:  (null)
number of ops:  6
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_ARRAY                                       ~1      'bar', 'foo'
    4     1        ADD_ARRAY_ELEMENT                                ~1      'foo', 'bar'
    5     2        FETCH_DIM_R                                      ~2      !0, 'foo'
          3        ADD_ARRAY_ELEMENT                                ~1      ~2
    2     4        ASSIGN                                                   !0, ~1
    6     5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.66 ms | 1396 KiB | 13 Q