3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
154.34 ms | 898 KiB | 10 Q