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(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 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 23
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 43
Branch analysis from position: 52
1 jumps found. (Code = 42) Position 1 = 68
Branch analysis from position: 68
2 jumps found. (Code = 44) Position 1 = 70, Position 2 = 64
Branch analysis from position: 70
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 64
2 jumps found. (Code = 44) Position 1 = 70, Position 2 = 64
Branch analysis from position: 70
Branch analysis from position: 64
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 43
Branch analysis from position: 52
Branch analysis from position: 43
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 23
Branch analysis from position: 31
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/PCpeG
function name:  (null)
number of ops:  77
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
   10    17        INIT_FCALL                                               'microtime'
         18        SEND_VAL                                                 1
         19        DO_ICALL                                         $11     
         20        ASSIGN                                                   !0, $11
   11    21        ASSIGN                                                   !1, 0
         22      > JMP                                                      ->29
   12    23    >   INIT_FCALL                                               'md5'
         24        INIT_FCALL                                               'mt_rand'
         25        DO_ICALL                                         $14     
         26        SEND_VAR                                                 $14
         27        DO_ICALL                                                 
   11    28        PRE_INC                                                  !1
         29    >   IS_SMALLER                                               !1, 10000
         30      > JMPNZ                                                    ~17, ->23
   15    31    >   INIT_FCALL                                               'microtime'
         32        SEND_VAL                                                 1
         33        DO_ICALL                                         $18     
         34        SUB                                              ~19     $18, !0
         35        CONCAT                                           ~20     ~19, '%0A'
         36        ECHO                                                     ~20
   17    37        INIT_FCALL                                               'microtime'
         38        SEND_VAL                                                 1
         39        DO_ICALL                                         $21     
         40        ASSIGN                                                   !0, $21
   18    41        ASSIGN                                                   !1, 0
         42      > JMP                                                      ->50
   19    43    >   INIT_FCALL                                               'md5'
         44        INIT_FCALL                                               'microtime'
         45        SEND_VAL                                                 <true>
         46        DO_ICALL                                         $24     
         47        SEND_VAR                                                 $24
         48        DO_ICALL                                                 
   18    49        PRE_INC                                                  !1
         50    >   IS_SMALLER                                               !1, 10000
         51      > JMPNZ                                                    ~27, ->43
   22    52    >   INIT_FCALL                                               'microtime'
         53        SEND_VAL                                                 1
         54        DO_ICALL                                         $28     
         55        SUB                                              ~29     $28, !0
         56        CONCAT                                           ~30     ~29, '%0A'
         57        ECHO                                                     ~30
   24    58        INIT_FCALL                                               'microtime'
         59        SEND_VAL                                                 1
         60        DO_ICALL                                         $31     
         61        ASSIGN                                                   !0, $31
   25    62        ASSIGN                                                   !1, 0
         63      > JMP                                                      ->68
   26    64    >   INIT_FCALL                                               'uniqid'
         65        SEND_VAL                                                 <true>
         66        DO_ICALL                                                 
   25    67        PRE_INC                                                  !1
         68    >   IS_SMALLER                                               !1, 10000
         69      > JMPNZ                                                    ~36, ->64
   29    70    >   INIT_FCALL                                               'microtime'
         71        SEND_VAL                                                 1
         72        DO_ICALL                                         $37     
         73        SUB                                              ~38     $37, !0
         74        CONCAT                                           ~39     ~38, '%0A'
         75        ECHO                                                     ~39
         76      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.59 ms | 1405 KiB | 21 Q