3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new stdClass(); $x->a = 1; $y = ['a'=>1]; var_dump(isset($x->a->b->c)); var_dump(isset($y['a']['b']['c'])); var_dump(empty($x->a->b->c));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r2bVn
function name:  (null)
number of ops:  25
compiled vars:  !0 = $x, !1 = $y
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, 'a'
          4        OP_DATA                                                  1
    6     5        ASSIGN                                                   !1, <array>
    8     6        INIT_FCALL                                               'var_dump'
          7        FETCH_OBJ_IS                                     ~7      !0, 'a'
          8        FETCH_OBJ_IS                                     ~8      ~7, 'b'
          9        ISSET_ISEMPTY_PROP_OBJ                           ~9      ~8, 'c'
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                                 
    9    12        INIT_FCALL                                               'var_dump'
         13        FETCH_DIM_IS                                     ~11     !1, 'a'
         14        FETCH_DIM_IS                                     ~12     ~11, 'b'
         15        ISSET_ISEMPTY_DIM_OBJ                         0  ~13     ~12, 'c'
         16        SEND_VAL                                                 ~13
         17        DO_ICALL                                                 
   10    18        INIT_FCALL                                               'var_dump'
         19        FETCH_OBJ_IS                                     ~15     !0, 'a'
         20        FETCH_OBJ_IS                                     ~16     ~15, 'b'
         21        ISSET_ISEMPTY_PROP_OBJ                           ~17     ~16, 'c'
         22        SEND_VAL                                                 ~17
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.24 ms | 1395 KiB | 15 Q