3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); $y = 0; //dummy 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>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>#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>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 = 63
Branch analysis from position: 63
2 jumps found. (Code = 44) Position 1 = 65, Position 2 = 61
Branch analysis from position: 65
1 jumps found. (Code = 42) Position 1 = 83
Branch analysis from position: 83
2 jumps found. (Code = 44) Position 1 = 85, Position 2 = 81
Branch analysis from position: 85
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 81
2 jumps found. (Code = 44) Position 1 = 85, Position 2 = 81
Branch analysis from position: 85
Branch analysis from position: 81
Branch analysis from position: 61
2 jumps found. (Code = 44) Position 1 = 65, Position 2 = 61
Branch analysis from position: 65
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/AgeDB
function name:  (null)
number of ops:  95
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%3E%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                                          '%2B%2B%24y%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%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%3E%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                                                      ->63
   24    61    >   PRE_INC                                                  !1
   23    62        PRE_INC                                                  !2
         63    >   IS_SMALLER                                               !2, !3
         64      > JMPNZ                                                    ~36, ->61
   27    65    >   INIT_FCALL                                               'printf'
         66        SEND_VAL                                                 '%3Cbr%3E%230+RESULT+%25d%2C+DONE+IN+%25f'
         67        SEND_VAR                                                 !1
         68        INIT_FCALL                                               'microtime'
         69        SEND_VAL                                                 <true>
         70        DO_ICALL                                         $37     
         71        SUB                                              ~38     $37, !0
         72        SEND_VAL                                                 ~38
         73        DO_ICALL                                                 
   29    74        INIT_FCALL                                               'microtime'
         75        SEND_VAL                                                 <true>
         76        DO_ICALL                                         $40     
         77        ASSIGN                                                   !0, $40
   30    78        ASSIGN                                                   !1, 0
   31    79        ASSIGN                                                   !2, 0
         80      > JMP                                                      ->83
   32    81    >   INCLUDE_OR_EVAL                                          '%2B%2B%24y%3B', EVAL
   31    82        PRE_INC                                                  !2
         83    >   IS_SMALLER                                               !2, !3
         84      > JMPNZ                                                    ~46, ->81
   35    85    >   INIT_FCALL                                               'printf'
         86        SEND_VAL                                                 '%3Cbr%3Eeval%231+RESULT+%25d%2C+DONE+IN+%25f'
         87        SEND_VAR                                                 !1
         88        INIT_FCALL                                               'microtime'
         89        SEND_VAL                                                 <true>
         90        DO_ICALL                                         $47     
         91        SUB                                              ~48     $47, !0
         92        SEND_VAL                                                 ~48
         93        DO_ICALL                                                 
         94      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.52 ms | 1404 KiB | 17 Q