3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrwithout = array(); $arrwith = array('e' => 42); $str = "test"; $obj = new stdclass(); var_dump($str[$obj]); var_dump($arrwithout[$obj]); var_dump($arrwith[$obj]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g6luc
function name:  (null)
number of ops:  19
compiled vars:  !0 = $arrwithout, !1 = $arrwith, !2 = $str, !3 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, 'test'
    6     3        NEW                                              $7      'stdclass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !3, $7
    7     6        INIT_FCALL                                               'var_dump'
          7        FETCH_DIM_R                                      ~10     !2, !3
          8        SEND_VAL                                                 ~10
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'var_dump'
         11        FETCH_DIM_R                                      ~12     !0, !3
         12        SEND_VAL                                                 ~12
         13        DO_ICALL                                                 
    9    14        INIT_FCALL                                               'var_dump'
         15        FETCH_DIM_R                                      ~14     !1, !3
         16        SEND_VAL                                                 ~14
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.48 ms | 1394 KiB | 15 Q