3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.74 ms | 1396 KiB | 15 Q