3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tstart1 = microtime(true); for($x=1; $x<=5000000; $x++); $tstop1 = microtime(true); print $tstop1 - $tstart1; print" > "; $tstart = microtime(true); for($x=1; $x<=5000000; ++$x); $tstop = microtime(true); print $tstop - $tstart;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 6
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 22
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 22
Branch analysis from position: 25
Branch analysis from position: 22
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 6
Branch analysis from position: 9
Branch analysis from position: 6
filename:       /in/qHHkR
function name:  (null)
number of ops:  32
compiled vars:  !0 = $tstart1, !1 = $x, !2 = $tstop1, !3 = $tstart, !4 = $tstop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    4     4        ASSIGN                                                   !1, 1
          5      > JMP                                                      ->7
          6    >   PRE_INC                                                  !1
          7    >   IS_SMALLER_OR_EQUAL                                      !1, 5000000
          8      > JMPNZ                                                    ~9, ->6
    5     9    >   INIT_FCALL                                               'microtime'
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $10     
         12        ASSIGN                                                   !2, $10
    6    13        SUB                                              ~12     !2, !0
         14        ECHO                                                     ~12
    8    15        ECHO                                                     '+%3E+'
   10    16        INIT_FCALL                                               'microtime'
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $13     
         19        ASSIGN                                                   !3, $13
   11    20        ASSIGN                                                   !1, 1
         21      > JMP                                                      ->23
         22    >   PRE_INC                                                  !1
         23    >   IS_SMALLER_OR_EQUAL                                      !1, 5000000
         24      > JMPNZ                                                    ~17, ->22
   12    25    >   INIT_FCALL                                               'microtime'
         26        SEND_VAL                                                 <true>
         27        DO_ICALL                                         $18     
         28        ASSIGN                                                   !4, $18
   13    29        SUB                                              ~20     !4, !3
         30        ECHO                                                     ~20
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.64 ms | 1396 KiB | 15 Q