3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.58 ms | 1388 KiB | 17 Q