3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public $null = null; } $a = new A; $item = 'Null'; var_dump(isset($a->$item)); var_dump(array_key_exists($item, $a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lsUGW
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    7     3        ASSIGN                                                   !1, 'Null'
    8     4        INIT_FCALL                                               'var_dump'
          5        ISSET_ISEMPTY_PROP_OBJ                           ~6      !0, !1
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                                 
    9     8        INIT_FCALL                                               'var_dump'
          9        ARRAY_KEY_EXISTS                                 ~8      !1, !0
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.35 ms | 1385 KiB | 15 Q