3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "++i "; $start = microtime(true); for ($i = 0; $i < 1000000; ++$i); $delta_pre = microtime(true) - $start; printf("%.4F\n", $delta_pre); echo "i++ "; $start = microtime(true); for ($i = 0; $i < 1000000; $i++); $delpa_post = microtime(true) - $start; printf("%.4F\n", $delpa_post); printf("\n%.2F", $delta_pre / $delpa_post * 100); echo "%\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 7
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 26
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 26
Branch analysis from position: 29
Branch analysis from position: 26
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 7
Branch analysis from position: 10
Branch analysis from position: 7
filename:       /in/E81rH
function name:  (null)
number of ops:  46
compiled vars:  !0 = $start, !1 = $i, !2 = $delta_pre, !3 = $delpa_post
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     '%2B%2Bi++'
    3     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    4     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->8
          7    >   PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 1000000
          9      > JMPNZ                                                    ~8, ->7
    5    10    >   INIT_FCALL                                               'microtime'
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $9      
         13        SUB                                              ~10     $9, !0
         14        ASSIGN                                                   !2, ~10
    6    15        INIT_FCALL                                               'printf'
         16        SEND_VAL                                                 '%25.4F%0A'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
    8    19        ECHO                                                     'i%2B%2B++'
    9    20        INIT_FCALL                                               'microtime'
         21        SEND_VAL                                                 <true>
         22        DO_ICALL                                         $13     
         23        ASSIGN                                                   !0, $13
   10    24        ASSIGN                                                   !1, 0
         25      > JMP                                                      ->27
         26    >   PRE_INC                                                  !1
         27    >   IS_SMALLER                                               !1, 1000000
         28      > JMPNZ                                                    ~17, ->26
   11    29    >   INIT_FCALL                                               'microtime'
         30        SEND_VAL                                                 <true>
         31        DO_ICALL                                         $18     
         32        SUB                                              ~19     $18, !0
         33        ASSIGN                                                   !3, ~19
   12    34        INIT_FCALL                                               'printf'
         35        SEND_VAL                                                 '%25.4F%0A'
         36        SEND_VAR                                                 !3
         37        DO_ICALL                                                 
   14    38        INIT_FCALL                                               'printf'
         39        SEND_VAL                                                 '%0A%25.2F'
         40        DIV                                              ~22     !2, !3
         41        MUL                                              ~23     ~22, 100
         42        SEND_VAL                                                 ~23
         43        DO_ICALL                                                 
   15    44        ECHO                                                     '%25%0A'
         45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.82 ms | 1405 KiB | 17 Q