3v4l.org

run code in 300+ PHP versions simultaneously
<?php $object = (object) array( 'entity_id' => 99, ); var_dump($object->entity_id); $array = array( (object) array( 'id' => 99, ), ); var_dump($array->entity_id);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nsMMq
function name:  (null)
number of ops:  14
compiled vars:  !0 = $object, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   CAST                                          8  ~2      <array>
    3     1        ASSIGN                                                   !0, ~2
    7     2        INIT_FCALL                                               'var_dump'
          3        FETCH_OBJ_R                                      ~4      !0, 'entity_id'
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                                 
   11     6        CAST                                          8  ~6      <array>
          7        INIT_ARRAY                                       ~7      ~6
    9     8        ASSIGN                                                   !1, ~7
   15     9        INIT_FCALL                                               'var_dump'
         10        FETCH_OBJ_R                                      ~9      !1, 'entity_id'
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.97 ms | 1394 KiB | 15 Q