3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.16 ms | 1394 KiB | 15 Q