3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $b = null; var_dump($b['foo1']); $b = array(); var_dump($b['foo']); $a = "string"; var_dump($a['foo2']); $b = 345678; var_dump($b['foo3']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/soVPg
function name:  (null)
number of ops:  24
compiled vars:  !0 = $b, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, null
    4     4        INIT_FCALL                                               'var_dump'
          5        FETCH_DIM_R                                      ~4      !0, 'foo1'
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    6     8        ASSIGN                                                   !0, <array>
    7     9        INIT_FCALL                                               'var_dump'
         10        FETCH_DIM_R                                      ~7      !0, 'foo'
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                                 
    9    13        ASSIGN                                                   !1, 'string'
   10    14        INIT_FCALL                                               'var_dump'
         15        FETCH_DIM_R                                      ~10     !1, 'foo2'
         16        SEND_VAL                                                 ~10
         17        DO_ICALL                                                 
   13    18        ASSIGN                                                   !0, 345678
   14    19        INIT_FCALL                                               'var_dump'
         20        FETCH_DIM_R                                      ~13     !0, 'foo3'
         21        SEND_VAL                                                 ~13
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.55 ms | 1399 KiB | 17 Q