3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $b = null; var_dump($b['foo1']); $b = "5"; var_dump("5".['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/i6bpL
function name:  (null)
number of ops:  20
compiled vars:  !0 = $b
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                                      ~3      !0, 'foo1'
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                                 
    6     8        ASSIGN                                                   !0, '5'
    7     9        INIT_FCALL                                               'var_dump'
         10        CAST                                          6  ~6      <array>
         11        CONCAT                                           ~7      '5', ~6
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
   10    14        ASSIGN                                                   !0, 345678
   11    15        INIT_FCALL                                               'var_dump'
         16        FETCH_DIM_R                                      ~10     !0, 'foo3'
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.53 ms | 1386 KiB | 17 Q