3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B extends ArrayObject { } $a = new B(); $a['null'] = null; var_dump($a->offsetExists('null')); var_dump(isset($a['null'])); var_dump(array_key_exists('null', $a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iBUGX
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'B'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        ASSIGN_DIM                                               !0, 'null'
          4        OP_DATA                                                  null
    5     5        INIT_FCALL                                               'var_dump'
          6        INIT_METHOD_CALL                                         !0, 'offsetExists'
          7        SEND_VAL_EX                                              'null'
          8        DO_FCALL                                      0  $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'var_dump'
         12        ISSET_ISEMPTY_DIM_OBJ                         0  ~7      !0, 'null'
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'var_dump'
         16        ARRAY_KEY_EXISTS                                 ~9      'null', !0
         17        SEND_VAL                                                 ~9
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.23 ms | 1395 KiB | 15 Q