3v4l.org

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

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.99 ms | 1385 KiB | 15 Q