3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 100000; $time = microtime(true); $items = array(); for ($i = 0; $i < $count; $i++) { $item = array(); $item['some_simple_key_0'] = 'value 0'; $item['some_simple_key_1'] = 'value 1'; $item['some_simple_key_2'] = 'value 2'; $item['some_simple_key_3'] = 'value 3'; $item['some_simple_key_4'] = 'value 4'; $item['some_simple_key_5'] = 'value 5'; $item['some_simple_key_6'] = 'value 6'; $item['some_simple_key_7'] = 'value 7'; $item['some_simple_key_8'] = 'value 8'; $item['some_simple_key_9'] = 'value 9'; $val = $item['some_simple_key_0']; $val = $item['some_simple_key_1']; $val = $item['some_simple_key_2']; $val = $item['some_simple_key_3']; $val = $item['some_simple_key_4']; $val = $item['some_simple_key_5']; $val = $item['some_simple_key_6']; $val = $item['some_simple_key_7']; $val = $item['some_simple_key_8']; $val = $item['some_simple_key_9']; $items[] = $item; } $spentTime = microtime(true) - $time; echo number_format($spentTime, 3) . ' seconds';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
2 jumps found. (Code = 44) Position 1 = 54, Position 2 = 8
Branch analysis from position: 54
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 54, Position 2 = 8
Branch analysis from position: 54
Branch analysis from position: 8
filename:       /in/9GEU9
function name:  (null)
number of ops:  66
compiled vars:  !0 = $count, !1 = $time, !2 = $items, !3 = $i, !4 = $item, !5 = $val, !6 = $spentTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 100000
    6     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $8      
          4        ASSIGN                                                   !1, $8
    7     5        ASSIGN                                                   !2, <array>
    9     6        ASSIGN                                                   !3, 0
          7      > JMP                                                      ->52
   10     8    >   ASSIGN                                                   !4, <array>
   12     9        ASSIGN_DIM                                               !4, 'some_simple_key_0'
         10        OP_DATA                                                  'value+0'
   13    11        ASSIGN_DIM                                               !4, 'some_simple_key_1'
         12        OP_DATA                                                  'value+1'
   14    13        ASSIGN_DIM                                               !4, 'some_simple_key_2'
         14        OP_DATA                                                  'value+2'
   15    15        ASSIGN_DIM                                               !4, 'some_simple_key_3'
         16        OP_DATA                                                  'value+3'
   16    17        ASSIGN_DIM                                               !4, 'some_simple_key_4'
         18        OP_DATA                                                  'value+4'
   17    19        ASSIGN_DIM                                               !4, 'some_simple_key_5'
         20        OP_DATA                                                  'value+5'
   18    21        ASSIGN_DIM                                               !4, 'some_simple_key_6'
         22        OP_DATA                                                  'value+6'
   19    23        ASSIGN_DIM                                               !4, 'some_simple_key_7'
         24        OP_DATA                                                  'value+7'
   20    25        ASSIGN_DIM                                               !4, 'some_simple_key_8'
         26        OP_DATA                                                  'value+8'
   21    27        ASSIGN_DIM                                               !4, 'some_simple_key_9'
         28        OP_DATA                                                  'value+9'
   23    29        FETCH_DIM_R                                      ~23     !4, 'some_simple_key_0'
         30        ASSIGN                                                   !5, ~23
   24    31        FETCH_DIM_R                                      ~25     !4, 'some_simple_key_1'
         32        ASSIGN                                                   !5, ~25
   25    33        FETCH_DIM_R                                      ~27     !4, 'some_simple_key_2'
         34        ASSIGN                                                   !5, ~27
   26    35        FETCH_DIM_R                                      ~29     !4, 'some_simple_key_3'
         36        ASSIGN                                                   !5, ~29
   27    37        FETCH_DIM_R                                      ~31     !4, 'some_simple_key_4'
         38        ASSIGN                                                   !5, ~31
   28    39        FETCH_DIM_R                                      ~33     !4, 'some_simple_key_5'
         40        ASSIGN                                                   !5, ~33
   29    41        FETCH_DIM_R                                      ~35     !4, 'some_simple_key_6'
         42        ASSIGN                                                   !5, ~35
   30    43        FETCH_DIM_R                                      ~37     !4, 'some_simple_key_7'
         44        ASSIGN                                                   !5, ~37
   31    45        FETCH_DIM_R                                      ~39     !4, 'some_simple_key_8'
         46        ASSIGN                                                   !5, ~39
   32    47        FETCH_DIM_R                                      ~41     !4, 'some_simple_key_9'
         48        ASSIGN                                                   !5, ~41
   34    49        ASSIGN_DIM                                               !2
         50        OP_DATA                                                  !4
    9    51        PRE_INC                                                  !3
         52    >   IS_SMALLER                                               !3, !0
         53      > JMPNZ                                                    ~45, ->8
   37    54    >   INIT_FCALL                                               'microtime'
         55        SEND_VAL                                                 <true>
         56        DO_ICALL                                         $46     
         57        SUB                                              ~47     $46, !1
         58        ASSIGN                                                   !6, ~47
   39    59        INIT_FCALL                                               'number_format'
         60        SEND_VAR                                                 !6
         61        SEND_VAL                                                 3
         62        DO_ICALL                                         $49     
         63        CONCAT                                           ~50     $49, '+seconds'
         64        ECHO                                                     ~50
         65      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.63 ms | 1400 KiB | 17 Q