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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.58 ms | 1400 KiB | 19 Q