3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new stdClass(); $x->a = 1; var_dump(isset($x->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/1ShRW
function name:  (null)
number of ops:  18
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        ASSIGN_OBJ                                               !0, 'a'
          4        OP_DATA                                                  1
    6     5        INIT_FCALL                                               'var_dump'
          6        FETCH_OBJ_IS                                     ~5      !0, 'a'
          7        FETCH_OBJ_IS                                     ~6      ~5, 'b'
          8        ISSET_ISEMPTY_PROP_OBJ                           ~7      ~6, 'c'
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                                 
    7    11        INIT_FCALL                                               'var_dump'
         12        FETCH_OBJ_IS                                     ~9      !0, 'a'
         13        FETCH_OBJ_IS                                     ~10     ~9, 'b'
         14        ISSET_ISEMPTY_PROP_OBJ                           ~11     ~10, 'c'
         15        SEND_VAL                                                 ~11
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.49 ms | 1394 KiB | 15 Q