3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.9 ms | 1394 KiB | 15 Q