3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); $time = microtime(1); $i = 0; while($i++ < 100000) echo'this','is','just','a','test',',','only and only a test','...','cycled many many times','again','this','is','just','a','test',',','only and only a test','...','cycled many many times';; 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'.'just'.'a'.'test'.','.'only and only a test'.'...'.'cycled many many times'.'again'.'this'.'is'.'just'.'a'.'test'.','.'only and only a test'.'...'.'cycled many many times'; 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 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 8
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 48
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 48
Branch analysis from position: 52
Branch analysis from position: 48
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 8
Branch analysis from position: 30
Branch analysis from position: 8
filename:       /in/tfO6d
function name:  (null)
number of ops:  62
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                                                      ->27
          8    >   ECHO                                                     'this'
          9        ECHO                                                     'is'
         10        ECHO                                                     'just'
         11        ECHO                                                     'a'
         12        ECHO                                                     'test'
         13        ECHO                                                     '%2C'
         14        ECHO                                                     'only+and+only+a+test'
         15        ECHO                                                     '...'
         16        ECHO                                                     'cycled+many+many+times'
         17        ECHO                                                     'again'
         18        ECHO                                                     'this'
         19        ECHO                                                     'is'
         20        ECHO                                                     'just'
         21        ECHO                                                     'a'
         22        ECHO                                                     'test'
         23        ECHO                                                     '%2C'
         24        ECHO                                                     'only+and+only+a+test'
         25        ECHO                                                     '...'
         26        ECHO                                                     'cycled+many+many+times'
         27    >   POST_INC                                         ~6      !1
         28        IS_SMALLER                                               ~6, 100000
         29      > JMPNZ                                                    ~7, ->8
    7    30    >   INIT_FCALL                                               'ob_end_clean'
         31        DO_ICALL                                                 
    8    32        INIT_FCALL                                               'microtime'
         33        SEND_VAL                                                 1
         34        DO_ICALL                                         $9      
         35        SUB                                              ~10     $9, !0
         36        MUL                                              ~11     ~10, 1000
         37        ECHO                                                     ~11
         38        ECHO                                                     '+milliseconds+for+commas'
   10    39        ECHO                                                     '%0A'
   12    40        INIT_FCALL                                               'ob_start'
         41        DO_ICALL                                                 
   13    42        INIT_FCALL                                               'microtime'
         43        SEND_VAL                                                 1
         44        DO_ICALL                                         $13     
         45        ASSIGN                                                   !0, $13
   14    46        ASSIGN                                                   !1, 0
   15    47      > JMP                                                      ->49
         48    >   ECHO                                                     'thisisjustatest%2Conly+and+only+a+test...cycled+many+many+timesagainthisisjustatest%2Conly+and+only+a+test...cycled+many+many+times'
         49    >   POST_INC                                         ~16     !1
         50        IS_SMALLER                                               ~16, 100000
         51      > JMPNZ                                                    ~17, ->48
   16    52    >   INIT_FCALL                                               'ob_end_clean'
         53        DO_ICALL                                                 
   17    54        INIT_FCALL                                               'microtime'
         55        SEND_VAL                                                 1
         56        DO_ICALL                                         $19     
         57        SUB                                              ~20     $19, !0
         58        MUL                                              ~21     ~20, 1000
         59        ECHO                                                     ~21
         60        ECHO                                                     '+milliseconds+for+dots'
         61      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.67 ms | 1392 KiB | 19 Q