3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=0;; while($i < 60000) { $i++; $data1[md5($i)] = true; } $time = microtime(true); echo "Starting array_key_exists\n"; array_key_exists('notexistingkey', $data); $time = microtime(true) - $time; echo "Starting isset\n"; isset($data['notexistingkey']); $time = microtime(true) - $time;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
Branch analysis from position: 2
filename:       /in/aCAUs
function name:  (null)
number of ops:  31
compiled vars:  !0 = $i, !1 = $data1, !2 = $time, !3 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1      > JMP                                                      ->8
    4     2    >   PRE_INC                                                  !0
    5     3        INIT_FCALL                                               'md5'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN_DIM                                               !1, $6
          7        OP_DATA                                                  <true>
    3     8    >   IS_SMALLER                                               !0, 60000
          9      > JMPNZ                                                    ~8, ->2
    8    10    >   INIT_FCALL                                               'microtime'
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
   10    14        ECHO                                                     'Starting+array_key_exists%0A'
   11    15        ARRAY_KEY_EXISTS                                 ~11     'notexistingkey', !3
         16        FREE                                                     ~11
   13    17        INIT_FCALL                                               'microtime'
         18        SEND_VAL                                                 <true>
         19        DO_ICALL                                         $12     
         20        SUB                                              ~13     $12, !2
         21        ASSIGN                                                   !2, ~13
   15    22        ECHO                                                     'Starting+isset%0A'
   16    23        ISSET_ISEMPTY_DIM_OBJ                         0  ~15     !3, 'notexistingkey'
         24        FREE                                                     ~15
   18    25        INIT_FCALL                                               'microtime'
         26        SEND_VAL                                                 <true>
         27        DO_ICALL                                         $16     
         28        SUB                                              ~17     $16, !2
         29        ASSIGN                                                   !2, ~17
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.1 ms | 1400 KiB | 17 Q