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).PHP_EOL; } 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 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 24
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 24
Branch analysis from position: 29
Branch analysis from position: 24
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/2HKr6
function name:  (null)
number of ops:  35
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                                                      ->11
    7     7    >   ARRAY_KEY_EXISTS                                 ~8      'test', !0
          8        CONCAT                                           ~9      ~8, '%0A'
          9        FREE                                                     ~9
    6    10        PRE_INC                                                  !2
         11    >   IS_SMALLER                                               !2, 1000000
         12      > JMPNZ                                                    ~11, ->7
    9    13    >   INIT_FCALL                                               'microtime'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $12     
         16        SUB                                              ~13     $12, !1
         17        ECHO                                                     ~13
   11    18        INIT_FCALL                                               'microtime'
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $14     
         21        ASSIGN                                                   !3, $14
   12    22        ASSIGN                                                   !2, 0
         23      > JMP                                                      ->27
   13    24    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~17     !0, 'test'
         25        FREE                                                     ~17
   12    26        PRE_INC                                                  !2
         27    >   IS_SMALLER                                               !2, 1000000
         28      > JMPNZ                                                    ~19, ->24
   15    29    >   INIT_FCALL                                               'microtime'
         30        SEND_VAL                                                 <true>
         31        DO_ICALL                                         $20     
         32        SUB                                              ~21     $20, !3
         33        ECHO                                                     ~21
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.15 ms | 1396 KiB | 15 Q