3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(15 => '', 16 => true); var_dump(array_key_exist(15, $a)); var_dump(isset($a[15])); var_dump(array_key_exist(16, $a)); var_dump(isset($a[16]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MErR4
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL_BY_NAME                                       'array_key_exist'
          3        SEND_VAL_EX                                              15
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'var_dump'
          9        ISSET_ISEMPTY_DIM_OBJ                         0  ~4      !0, 15
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL_BY_NAME                                       'array_key_exist'
         14        SEND_VAL_EX                                              16
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0  $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                                 
    7    19        INIT_FCALL                                               'var_dump'
         20        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      !0, 16
         21        SEND_VAL                                                 ~8
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.55 ms | 1399 KiB | 15 Q