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, ), ); $array = array( NULL, ); var_dump($array, array_flip($array)); //var_dump($array->entity_id);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Mc80
function name:  (null)
number of ops:  18
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        ASSIGN                                                   !1, <array>
   18    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        INIT_FCALL                                               'array_flip'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $10     
         15        SEND_VAR                                                 $10
         16        DO_ICALL                                                 
   20    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.21 ms | 1394 KiB | 17 Q