3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.43 ms | 1398 KiB | 15 Q