3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $size = 1000; while($size--) $arr[] = md5(microtime()); $start = microtime(true); count($arr); echo round(microtime(true) - $start, 3); ?>
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 = 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
Branch analysis from position: 3
filename:       /in/J2Cvb
function name:  (null)
number of ops:  28
compiled vars:  !0 = $arr, !1 = $size, !2 = $start
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 1000
    4     2      > JMP                                                      ->10
    5     3    >   INIT_FCALL                                               'md5'
          4        INIT_FCALL                                               'microtime'
          5        DO_ICALL                                         $6      
          6        SEND_VAR                                                 $6
          7        DO_ICALL                                         $7      
          8        ASSIGN_DIM                                               !0
          9        OP_DATA                                                  $7
    4    10    >   POST_DEC                                         ~8      !1
         11      > JMPNZ                                                    ~8, ->3
    7    12    >   INIT_FCALL                                               'microtime'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !2, $9
    8    16        COUNT                                            ~11     !0
         17        FREE                                                     ~11
    9    18        INIT_FCALL                                               'round'
         19        INIT_FCALL                                               'microtime'
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $12     
         22        SUB                                              ~13     $12, !2
         23        SEND_VAL                                                 ~13
         24        SEND_VAL                                                 3
         25        DO_ICALL                                         $14     
         26        ECHO                                                     $14
   10    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.27 ms | 1395 KiB | 19 Q