3v4l.org

run code in 500+ PHP versions simultaneously
<?php // $x = 'foo'; # notice this doesn't actually exist $y = null; # exists but null $z = 'foo'; # exists and not null var_dump(array_key_exists('x', compact('x'))); // false var_dump(array_key_exists('y', compact('y'))); // true var_dump(array_key_exists('z', compact('z'))); // true
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TLdZI
function name:  (null)
number of ops:  24
compiled vars:  !0 = $y, !1 = $z
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, null
    5     1        ASSIGN                                                       !1, 'foo'
    7     2        INIT_FCALL                                                   'var_dump'
          3        INIT_FCALL                                                   'compact'
          4        SEND_VAL                                                     'x'
          5        DO_ICALL                                             $4      
          6        ARRAY_KEY_EXISTS                                     ~5      'x', $4
          7        SEND_VAL                                                     ~5
          8        DO_ICALL                                                     
    8     9        INIT_FCALL                                                   'var_dump'
         10        INIT_FCALL                                                   'compact'
         11        SEND_VAL                                                     'y'
         12        DO_ICALL                                             $7      
         13        ARRAY_KEY_EXISTS                                     ~8      'y', $7
         14        SEND_VAL                                                     ~8
         15        DO_ICALL                                                     
    9    16        INIT_FCALL                                                   'var_dump'
         17        INIT_FCALL                                                   'compact'
         18        SEND_VAL                                                     'z'
         19        DO_ICALL                                             $10     
         20        ARRAY_KEY_EXISTS                                     ~11     'z', $10
         21        SEND_VAL                                                     ~11
         22        DO_ICALL                                                     
         23      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.96 ms | 2978 KiB | 15 Q