3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL & ~E_NOTICE); $foo = array("bar" => "baz", "null" => "void"); print_r($foo[bar]); //this works, as it will assume $foo["bar"] print_r($foo[null]); //null is a defined constant, so it will look for a value with an empty key which is not defined
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QW8qV
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32759
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, <array>
    4     4        INIT_FCALL                                               'print_r'
          5        FETCH_CONSTANT                                   ~3      'bar'
          6        FETCH_DIM_R                                      ~4      !0, ~3
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'print_r'
         10        FETCH_DIM_R                                      ~6      !0, null
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.79 ms | 1002 KiB | 15 Q