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 that tests only comma vs dot-concatenation... Which is the fastest?','this is a test that tests only comma vs dot-concatenation... Which is the fastest?','this is a test that tests only comma vs dot-concatenation... Which is the fastest?','this is a test that tests only comma vs dot-concatenation... Which is the fastest?'; ob_end_clean(); echo (microtime(1)-$time)*1000, " milliseconds for commas"; echo "\n"; ob_start(); $time = microtime(1); $i = 0; while($i++ < 100000) echo'this is a test that tests only comma vs dot-concatenation... Which is the fastest?'.'this is a test that tests only comma vs dot-concatenation... Which is the fastest?'.'this is a test that tests only comma vs dot-concatenation... Which is the fastest?'.'this is a test that tests only comma vs dot-concatenation... Which is the fastest?'; ob_end_clean(); echo (microtime(1)-$time)*1000, " milliseconds for dots";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 33
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 33
Branch analysis from position: 37
Branch analysis from position: 33
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/q2WIB
function name:  (null)
number of ops:  47
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                                                      ->12
          8    >   ECHO                                                     'this+is+a+test+that+tests+only+comma+vs+dot-concatenation...+Which+is+the+fastest%3F'
          9        ECHO                                                     'this+is+a+test+that+tests+only+comma+vs+dot-concatenation...+Which+is+the+fastest%3F'
         10        ECHO                                                     'this+is+a+test+that+tests+only+comma+vs+dot-concatenation...+Which+is+the+fastest%3F'
         11        ECHO                                                     'this+is+a+test+that+tests+only+comma+vs+dot-concatenation...+Which+is+the+fastest%3F'
         12    >   POST_INC                                         ~6      !1
         13        IS_SMALLER                                               ~6, 100000
         14      > JMPNZ                                                    ~7, ->8
    7    15    >   INIT_FCALL                                               'ob_end_clean'
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'microtime'
         18        SEND_VAL                                                 1
         19        DO_ICALL                                         $9      
         20        SUB                                              ~10     $9, !0
         21        MUL                                              ~11     ~10, 1000
         22        ECHO                                                     ~11
         23        ECHO                                                     '+milliseconds+for+commas'
   10    24        ECHO                                                     '%0A'
   12    25        INIT_FCALL                                               'ob_start'
         26        DO_ICALL                                                 
   13    27        INIT_FCALL                                               'microtime'
         28        SEND_VAL                                                 1
         29        DO_ICALL                                         $13     
         30        ASSIGN                                                   !0, $13
   14    31        ASSIGN                                                   !1, 0
   15    32      > JMP                                                      ->34
         33    >   ECHO                                                     'this+is+a+test+that+tests+only+comma+vs+dot-concatenation...+Which+is+the+fastest%3Fthis+is+a+test+that+tests+only+comma+vs+dot-concatenation...+Which+is+the+fastest%3Fthis+is+a+test+that+tests+only+comma+vs+dot-concatenation...+Which+is+the+fastest%3Fthis+is+a+test+that+tests+only+comma+vs+dot-concatenation...+Which+is+the+fastest%3F'
         34    >   POST_INC                                         ~16     !1
         35        IS_SMALLER                                               ~16, 100000
         36      > JMPNZ                                                    ~17, ->33
   16    37    >   INIT_FCALL                                               'ob_end_clean'
         38        DO_ICALL                                                 
   17    39        INIT_FCALL                                               'microtime'
         40        SEND_VAL                                                 1
         41        DO_ICALL                                         $19     
         42        SUB                                              ~20     $19, !0
         43        MUL                                              ~21     ~20, 1000
         44        ECHO                                                     ~21
         45        ECHO                                                     '+milliseconds+for+dots'
         46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.3 ms | 1404 KiB | 20 Q