3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); $time = microtime(1); $i = 0; while($i++ < 100000) echo'this is a test','this is a test','this is a test','this is a test','this is a test','this is a test'; ob_end_clean(); echo (microtime(1)-$time)*1000, " milliseconds for commas without vars"; echo "\n"; ob_start(); $time = microtime(1); $i = 0; while($i++ < 100000) echo'this is a test'.'this is a test'.'this is a test'.'this is a test'.'this is a test'.'this is a test'; ob_end_clean(); echo (microtime(1)-$time)*1000, " milliseconds for dots without vars"; echo "\n"; ob_start(); $time = microtime(1); $i = 0; while($i++ < 100000) echo'this is a test',$i,'this is a test',$i,'this is a test',$i,'this is a test',$i,'this is a test',$i,'this is a test'; ob_end_clean(); echo (microtime(1)-$time)*1000, " milliseconds for commas with vars"; echo "\n"; ob_start(); $time = microtime(1); $i = 0; while($i++ < 100000) echo'this is a test'.$i.'this is a test'.$i.'this is a test'.$i.'this is a test'.$i.'this is a test'.$i.'this is a test'; ob_end_clean(); echo (microtime(1)-$time)*1000, " milliseconds for dots with vars";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 35
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 68
Branch analysis from position: 68
2 jumps found. (Code = 44) Position 1 = 71, Position 2 = 57
Branch analysis from position: 71
1 jumps found. (Code = 42) Position 1 = 100
Branch analysis from position: 100
2 jumps found. (Code = 44) Position 1 = 103, Position 2 = 89
Branch analysis from position: 103
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 89
2 jumps found. (Code = 44) Position 1 = 103, Position 2 = 89
Branch analysis from position: 103
Branch analysis from position: 89
Branch analysis from position: 57
2 jumps found. (Code = 44) Position 1 = 71, Position 2 = 57
Branch analysis from position: 71
Branch analysis from position: 57
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 35
Branch analysis from position: 39
Branch analysis from position: 35
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
Branch analysis from position: 8
filename:       /in/tiCDs
function name:  (null)
number of ops:  113
compiled vars:  !0 = $time, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ob_start'
          1        DO_ICALL                                                 
    4     2        INIT_FCALL                                               'microtime'
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    5     6        ASSIGN                                                   !1, 0
    6     7      > JMP                                                      ->14
          8    >   ECHO                                                     'this+is+a+test'
          9        ECHO                                                     'this+is+a+test'
         10        ECHO                                                     'this+is+a+test'
         11        ECHO                                                     'this+is+a+test'
         12        ECHO                                                     'this+is+a+test'
         13        ECHO                                                     'this+is+a+test'
         14    >   POST_INC                                         ~6      !1
         15        IS_SMALLER                                               ~6, 100000
         16      > JMPNZ                                                    ~7, ->8
    7    17    >   INIT_FCALL                                               'ob_end_clean'
         18        DO_ICALL                                                 
    8    19        INIT_FCALL                                               'microtime'
         20        SEND_VAL                                                 1
         21        DO_ICALL                                         $9      
         22        SUB                                              ~10     $9, !0
         23        MUL                                              ~11     ~10, 1000
         24        ECHO                                                     ~11
         25        ECHO                                                     '+milliseconds+for+commas+without+vars'
   10    26        ECHO                                                     '%0A'
   12    27        INIT_FCALL                                               'ob_start'
         28        DO_ICALL                                                 
   13    29        INIT_FCALL                                               'microtime'
         30        SEND_VAL                                                 1
         31        DO_ICALL                                         $13     
         32        ASSIGN                                                   !0, $13
   14    33        ASSIGN                                                   !1, 0
   15    34      > JMP                                                      ->36
         35    >   ECHO                                                     'this+is+a+testthis+is+a+testthis+is+a+testthis+is+a+testthis+is+a+testthis+is+a+test'
         36    >   POST_INC                                         ~16     !1
         37        IS_SMALLER                                               ~16, 100000
         38      > JMPNZ                                                    ~17, ->35
   16    39    >   INIT_FCALL                                               'ob_end_clean'
         40        DO_ICALL                                                 
   17    41        INIT_FCALL                                               'microtime'
         42        SEND_VAL                                                 1
         43        DO_ICALL                                         $19     
         44        SUB                                              ~20     $19, !0
         45        MUL                                              ~21     ~20, 1000
         46        ECHO                                                     ~21
         47        ECHO                                                     '+milliseconds+for+dots+without+vars'
   19    48        ECHO                                                     '%0A'
   21    49        INIT_FCALL                                               'ob_start'
         50        DO_ICALL                                                 
   22    51        INIT_FCALL                                               'microtime'
         52        SEND_VAL                                                 1
         53        DO_ICALL                                         $23     
         54        ASSIGN                                                   !0, $23
   23    55        ASSIGN                                                   !1, 0
   24    56      > JMP                                                      ->68
         57    >   ECHO                                                     'this+is+a+test'
         58        ECHO                                                     !1
         59        ECHO                                                     'this+is+a+test'
         60        ECHO                                                     !1
         61        ECHO                                                     'this+is+a+test'
         62        ECHO                                                     !1
         63        ECHO                                                     'this+is+a+test'
         64        ECHO                                                     !1
         65        ECHO                                                     'this+is+a+test'
         66        ECHO                                                     !1
         67        ECHO                                                     'this+is+a+test'
         68    >   POST_INC                                         ~26     !1
         69        IS_SMALLER                                               ~26, 100000
         70      > JMPNZ                                                    ~27, ->57
   25    71    >   INIT_FCALL                                               'ob_end_clean'
         72        DO_ICALL                                                 
   26    73        INIT_FCALL                                               'microtime'
         74        SEND_VAL                                                 1
         75        DO_ICALL                                         $29     
         76        SUB                                              ~30     $29, !0
         77        MUL                                              ~31     ~30, 1000
         78        ECHO                                                     ~31
         79        ECHO                                                     '+milliseconds+for+commas+with+vars'
   28    80        ECHO                                                     '%0A'
   30    81        INIT_FCALL                                               'ob_start'
         82        DO_ICALL                                                 
   31    83        INIT_FCALL                                               'microtime'
         84        SEND_VAL                                                 1
         85        DO_ICALL                                         $33     
         86        ASSIGN                                                   !0, $33
   32    87        ASSIGN                                                   !1, 0
   33    88      > JMP                                                      ->100
         89    >   CONCAT                                           ~36     'this+is+a+test', !1
         90        CONCAT                                           ~37     ~36, 'this+is+a+test'
         91        CONCAT                                           ~38     ~37, !1
         92        CONCAT                                           ~39     ~38, 'this+is+a+test'
         93        CONCAT                                           ~40     ~39, !1
         94        CONCAT                                           ~41     ~40, 'this+is+a+test'
         95        CONCAT                                           ~42     ~41, !1
         96        CONCAT                                           ~43     ~42, 'this+is+a+test'
         97        CONCAT                                           ~44     ~43, !1
         98        CONCAT                                           ~45     ~44, 'this+is+a+test'
         99        ECHO                                                     ~45
        100    >   POST_INC                                         ~46     !1
        101        IS_SMALLER                                               ~46, 100000
        102      > JMPNZ                                                    ~47, ->89
   34   103    >   INIT_FCALL                                               'ob_end_clean'
        104        DO_ICALL                                                 
   35   105        INIT_FCALL                                               'microtime'
        106        SEND_VAL                                                 1
        107        DO_ICALL                                         $49     
        108        SUB                                              ~50     $49, !0
        109        MUL                                              ~51     ~50, 1000
        110        ECHO                                                     ~51
        111        ECHO                                                     '+milliseconds+for+dots+with+vars'
        112      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.81 ms | 1404 KiB | 19 Q