3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('’a’', 'example'); $foo = array('example' => 'OK'); var_dump($foo[’a’]); $foo = array('b' => 'OK'); var_dump($foo[’b’]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oHvKe
function name:  (null)
number of ops:  17
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 '%E2%80%99a%E2%80%99'
          2        SEND_VAL                                                 'example'
          3        DO_ICALL                                                 
    4     4        ASSIGN                                                   !0, <array>
    5     5        INIT_FCALL                                               'var_dump'
          6        FETCH_CONSTANT                                   ~3      '%E2%80%99a%E2%80%99'
          7        FETCH_DIM_R                                      ~4      !0, ~3
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
    7    10        ASSIGN                                                   !0, <array>
    8    11        INIT_FCALL                                               'var_dump'
         12        FETCH_CONSTANT                                   ~7      '%E2%80%99b%E2%80%99'
         13        FETCH_DIM_R                                      ~8      !0, ~7
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.23 ms | 1010 KiB | 15 Q