3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.17 ms | 1404 KiB | 17 Q