3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.81 ms | 1014 KiB | 14 Q