3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=0;; while($i < 60000) { $i++; $data[md5($i)] = true; } $stime = microtime(true); array_key_exists('notexistingkey', $data); $time = microtime(true) - $stime; echo "Starting array_key_exists => $time\n"; $stime = microtime(true); isset($data['notexistingkey']); $time = microtime(true) - $stime; echo "Starting isset => $time\n";
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/SEYae
function name:  (null)
number of ops:  41
compiled vars:  !0 = $i, !1 = $data, !2 = $stime, !3 = $time
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        ARRAY_KEY_EXISTS                                 ~11     'notexistingkey', !1
         15        FREE                                                     ~11
   12    16        INIT_FCALL                                               'microtime'
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $12     
         19        SUB                                              ~13     $12, !2
         20        ASSIGN                                                   !3, ~13
   13    21        ROPE_INIT                                     3  ~16     'Starting+array_key_exists+%3D%3E+'
         22        ROPE_ADD                                      1  ~16     ~16, !3
         23        ROPE_END                                      2  ~15     ~16, '%0A'
         24        ECHO                                                     ~15
   15    25        INIT_FCALL                                               'microtime'
         26        SEND_VAL                                                 <true>
         27        DO_ICALL                                         $18     
         28        ASSIGN                                                   !2, $18
   17    29        ISSET_ISEMPTY_DIM_OBJ                         0  ~20     !1, 'notexistingkey'
         30        FREE                                                     ~20
   19    31        INIT_FCALL                                               'microtime'
         32        SEND_VAL                                                 <true>
         33        DO_ICALL                                         $21     
         34        SUB                                              ~22     $21, !2
         35        ASSIGN                                                   !3, ~22
   20    36        ROPE_INIT                                     3  ~25     'Starting+isset+%3D%3E+'
         37        ROPE_ADD                                      1  ~25     ~25, !3
         38        ROPE_END                                      2  ~24     ~25, '%0A'
         39        ECHO                                                     ~24
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.28 ms | 1400 KiB | 17 Q