3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(1); for ($i =0; $i < 10000; $i++) { mt_rand(); } echo (microtime(1) - $start) . "\n"; $start = microtime(1); for ($i =0; $i < 10000; $i++) { md5(microtime(true)); } echo (microtime(1) - $start) . "\n"; $start = microtime(1); for ($i =0; $i < 10000; $i++) { uniqid(true); } echo (microtime(1) - $start) . "\n";
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 = 6
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 23
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 44
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 44
Branch analysis from position: 50
Branch analysis from position: 44
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 23
Branch analysis from position: 32
Branch analysis from position: 23
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
Branch analysis from position: 6
filename:       /in/TZteY
function name:  (null)
number of ops:  57
compiled vars:  !0 = $start, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 1
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->9
    6     6    >   INIT_FCALL                                               'mt_rand'
          7        DO_ICALL                                                 
    5     8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 10000
         10      > JMPNZ                                                    ~7, ->6
    9    11    >   INIT_FCALL                                               'microtime'
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $8      
         14        SUB                                              ~9      $8, !0
         15        CONCAT                                           ~10     ~9, '%0A'
         16        ECHO                                                     ~10
   11    17        INIT_FCALL                                               'microtime'
         18        SEND_VAL                                                 1
         19        DO_ICALL                                         $11     
         20        ASSIGN                                                   !0, $11
   12    21        ASSIGN                                                   !1, 0
         22      > JMP                                                      ->30
   13    23    >   INIT_FCALL                                               'md5'
         24        INIT_FCALL                                               'microtime'
         25        SEND_VAL                                                 <true>
         26        DO_ICALL                                         $14     
         27        SEND_VAR                                                 $14
         28        DO_ICALL                                                 
   12    29        PRE_INC                                                  !1
         30    >   IS_SMALLER                                               !1, 10000
         31      > JMPNZ                                                    ~17, ->23
   16    32    >   INIT_FCALL                                               'microtime'
         33        SEND_VAL                                                 1
         34        DO_ICALL                                         $18     
         35        SUB                                              ~19     $18, !0
         36        CONCAT                                           ~20     ~19, '%0A'
         37        ECHO                                                     ~20
   18    38        INIT_FCALL                                               'microtime'
         39        SEND_VAL                                                 1
         40        DO_ICALL                                         $21     
         41        ASSIGN                                                   !0, $21
   19    42        ASSIGN                                                   !1, 0
         43      > JMP                                                      ->48
   20    44    >   INIT_FCALL                                               'uniqid'
         45        SEND_VAL                                                 <true>
         46        DO_ICALL                                                 
   19    47        PRE_INC                                                  !1
         48    >   IS_SMALLER                                               !1, 10000
         49      > JMPNZ                                                    ~26, ->44
   23    50    >   INIT_FCALL                                               'microtime'
         51        SEND_VAL                                                 1
         52        DO_ICALL                                         $27     
         53        SUB                                              ~28     $27, !0
         54        CONCAT                                           ~29     ~28, '%0A'
         55        ECHO                                                     ~29
         56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.14 ms | 1400 KiB | 21 Q