3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { eval('++$y;'); } printf("<br>#0 RESULT %d, DONE IN %f", $y, microtime(true) - $start); $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { ++$y; } printf("<br>#1 RESULT %d, DONE IN %f", $y, microtime(true) - $start); $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { ++$y; } printf("<br>#0 RESULT %d, DONE IN %f", $y, microtime(true) - $start); $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { eval('++$y;'); } printf("<br>#1 RESULT %d, DONE IN %f", $y, microtime(true) - $start);
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 = 7
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 = 27
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
2 jumps found. (Code = 44) Position 1 = 51, Position 2 = 47
Branch analysis from position: 51
1 jumps found. (Code = 42) Position 1 = 69
Branch analysis from position: 69
2 jumps found. (Code = 44) Position 1 = 71, Position 2 = 67
Branch analysis from position: 71
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 67
2 jumps found. (Code = 44) Position 1 = 71, Position 2 = 67
Branch analysis from position: 71
Branch analysis from position: 67
Branch analysis from position: 47
2 jumps found. (Code = 44) Position 1 = 51, Position 2 = 47
Branch analysis from position: 51
Branch analysis from position: 47
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 27
Branch analysis from position: 31
Branch analysis from position: 27
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 7
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/6EvbQ
function name:  (null)
number of ops:  81
compiled vars:  !0 = $start, !1 = $y, !2 = $i, !3 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    3     4        ASSIGN                                                   !1, 0
    4     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->9
    5     7    >   INCLUDE_OR_EVAL                                          '%2B%2B%24y%3B', EVAL
    4     8        PRE_INC                                                  !2
          9    >   IS_SMALLER                                               !2, !3
         10      > JMPNZ                                                    ~10, ->7
    8    11    >   INIT_FCALL                                               'printf'
         12        SEND_VAL                                                 '%3Cbr%3E%230+RESULT+%25d%2C+DONE+IN+%25f'
         13        SEND_VAR                                                 !1
         14        INIT_FCALL                                               'microtime'
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $11     
         17        SUB                                              ~12     $11, !0
         18        SEND_VAL                                                 ~12
         19        DO_ICALL                                                 
   10    20        INIT_FCALL                                               'microtime'
         21        SEND_VAL                                                 <true>
         22        DO_ICALL                                         $14     
         23        ASSIGN                                                   !0, $14
   11    24        ASSIGN                                                   !1, 0
   12    25        ASSIGN                                                   !2, 0
         26      > JMP                                                      ->29
   13    27    >   PRE_INC                                                  !1
   12    28        PRE_INC                                                  !2
         29    >   IS_SMALLER                                               !2, !3
         30      > JMPNZ                                                    ~20, ->27
   16    31    >   INIT_FCALL                                               'printf'
         32        SEND_VAL                                                 '%3Cbr%3E%231+RESULT+%25d%2C+DONE+IN+%25f'
         33        SEND_VAR                                                 !1
         34        INIT_FCALL                                               'microtime'
         35        SEND_VAL                                                 <true>
         36        DO_ICALL                                         $21     
         37        SUB                                              ~22     $21, !0
         38        SEND_VAL                                                 ~22
         39        DO_ICALL                                                 
   17    40        INIT_FCALL                                               'microtime'
         41        SEND_VAL                                                 <true>
         42        DO_ICALL                                         $24     
         43        ASSIGN                                                   !0, $24
   18    44        ASSIGN                                                   !1, 0
   19    45        ASSIGN                                                   !2, 0
         46      > JMP                                                      ->49
   20    47    >   PRE_INC                                                  !1
   19    48        PRE_INC                                                  !2
         49    >   IS_SMALLER                                               !2, !3
         50      > JMPNZ                                                    ~30, ->47
   23    51    >   INIT_FCALL                                               'printf'
         52        SEND_VAL                                                 '%3Cbr%3E%230+RESULT+%25d%2C+DONE+IN+%25f'
         53        SEND_VAR                                                 !1
         54        INIT_FCALL                                               'microtime'
         55        SEND_VAL                                                 <true>
         56        DO_ICALL                                         $31     
         57        SUB                                              ~32     $31, !0
         58        SEND_VAL                                                 ~32
         59        DO_ICALL                                                 
   25    60        INIT_FCALL                                               'microtime'
         61        SEND_VAL                                                 <true>
         62        DO_ICALL                                         $34     
         63        ASSIGN                                                   !0, $34
   26    64        ASSIGN                                                   !1, 0
   27    65        ASSIGN                                                   !2, 0
         66      > JMP                                                      ->69
   28    67    >   INCLUDE_OR_EVAL                                          '%2B%2B%24y%3B', EVAL
   27    68        PRE_INC                                                  !2
         69    >   IS_SMALLER                                               !2, !3
         70      > JMPNZ                                                    ~40, ->67
   31    71    >   INIT_FCALL                                               'printf'
         72        SEND_VAL                                                 '%3Cbr%3E%231+RESULT+%25d%2C+DONE+IN+%25f'
         73        SEND_VAR                                                 !1
         74        INIT_FCALL                                               'microtime'
         75        SEND_VAL                                                 <true>
         76        DO_ICALL                                         $41     
         77        SUB                                              ~42     $41, !0
         78        SEND_VAL                                                 ~42
         79        DO_ICALL                                                 
         80      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.56 ms | 1404 KiB | 17 Q