3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); for ($i = 0; $i < 10000; $i++) { $time = $_SERVER['REQUEST_TIME']; } echo 'request time: ' . (microtime(true) - $time); $time = microtime(true); for ($i = 0; $i < 10000; $i++) { $time = time(); } echo 'time(): ' . (microtime(true) - $time);
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 = 6
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 24
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 24
Branch analysis from position: 30
Branch analysis from position: 24
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/s80ss
function name:  (null)
number of ops:  37
compiled vars:  !0 = $time, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->10
    5     6    >   FETCH_R                      global              ~5      '_SERVER'
          7        FETCH_DIM_R                                      ~6      ~5, 'REQUEST_TIME'
          8        ASSIGN                                                   !0, ~6
    4     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 10000
         11      > JMPNZ                                                    ~9, ->6
    7    12    >   INIT_FCALL                                               'microtime'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $10     
         15        SUB                                              ~11     $10, !0
         16        CONCAT                                           ~12     'request+time%3A+', ~11
         17        ECHO                                                     ~12
    9    18        INIT_FCALL                                               'microtime'
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $13     
         21        ASSIGN                                                   !0, $13
   10    22        ASSIGN                                                   !1, 0
         23      > JMP                                                      ->28
   11    24    >   INIT_FCALL                                               'time'
         25        DO_ICALL                                         $16     
         26        ASSIGN                                                   !0, $16
   10    27        PRE_INC                                                  !1
         28    >   IS_SMALLER                                               !1, 10000
         29      > JMPNZ                                                    ~19, ->24
   14    30    >   INIT_FCALL                                               'microtime'
         31        SEND_VAL                                                 <true>
         32        DO_ICALL                                         $20     
         33        SUB                                              ~21     $20, !0
         34        CONCAT                                           ~22     'time%28%29%3A+', ~21
         35        ECHO                                                     ~22
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.18 ms | 1400 KiB | 17 Q