3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.91 ms | 1392 KiB | 13 Q