3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $size = 400000; for ($i = 0; $i < $size; ++$i) $a[] = rand(); $t = microtime(true); for ($i = 0; $i < count($a) * 10; ++$i) ; echo (microtime(true) - $t);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 17
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 17
Branch analysis from position: 22
Branch analysis from position: 17
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
Branch analysis from position: 4
filename:       /in/MRYJB
function name:  (null)
number of ops:  28
compiled vars:  !0 = $a, !1 = $size, !2 = $i, !3 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, 400000
    8     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->9
    9     4    >   INIT_FCALL                                               'rand'
          5        DO_ICALL                                         $8      
          6        ASSIGN_DIM                                               !0
          7        OP_DATA                                                  $8
    8     8        PRE_INC                                                  !2
          9    >   IS_SMALLER                                               !2, !1
         10      > JMPNZ                                                    ~10, ->4
   11    11    >   INIT_FCALL                                               'microtime'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !3, $11
   13    15        ASSIGN                                                   !2, 0
         16      > JMP                                                      ->18
         17    >   PRE_INC                                                  !2
         18    >   COUNT                                            ~15     !0
         19        MUL                                              ~16     ~15, 10
         20        IS_SMALLER                                               !2, ~16
         21      > JMPNZ                                                    ~17, ->17
   16    22    >   INIT_FCALL                                               'microtime'
         23        SEND_VAL                                                 <true>
         24        DO_ICALL                                         $18     
         25        SUB                                              ~19     $18, !3
         26        ECHO                                                     ~19
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.1 ms | 1396 KiB | 17 Q