3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.07 ms | 1392 KiB | 15 Q