3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj1 = new stdClass; $obj1->{'123'} = '456'; var_dump($obj1, $obj1->{'123'}); $obj2 = (object)array('123' => '456'); var_dump($obj2, $obj2->{'123'});
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5RuEF
function name:  (null)
number of ops:  18
compiled vars:  !0 = $obj1, !1 = $obj2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        ASSIGN_OBJ                                               !0, '123'
          4        OP_DATA                                                  '456'
    5     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        FETCH_OBJ_R                                      ~6      !0, '123'
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                                 
    7    10        CAST                                          8  ~8      <array>
         11        ASSIGN                                                   !1, ~8
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        FETCH_OBJ_R                                      ~10     !1, '123'
         15        SEND_VAL                                                 ~10
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.9 ms | 1394 KiB | 15 Q