3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); $time = microtime(1); $i = 0; while($i++ < 10000) echo'abcdef','abcdef','abcdef','abcdef','abcdef','abcdef','abcdef','abcdef'; ob_end_clean(); echo (microtime(1)-$time)." seconds for commas"; echo "\n"; ob_start(); $time = microtime(1); $i = 0; while($i++ < 10000) echo'abcdef'.'abcdef'.'abcdef'.'abcdef'.'abcdef'.'abcdef'.'abcdef'.'abcdef'; ob_end_clean(); echo (microtime(1)-$time)." seconds for dot";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 8
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 36
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 36
Branch analysis from position: 40
Branch analysis from position: 36
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 8
Branch analysis from position: 19
Branch analysis from position: 8
filename:       /in/p1FhJ
function name:  (null)
number of ops:  49
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                                                      ->16
          8    >   ECHO                                                     'abcdef'
          9        ECHO                                                     'abcdef'
         10        ECHO                                                     'abcdef'
         11        ECHO                                                     'abcdef'
         12        ECHO                                                     'abcdef'
         13        ECHO                                                     'abcdef'
         14        ECHO                                                     'abcdef'
         15        ECHO                                                     'abcdef'
         16    >   POST_INC                                         ~6      !1
         17        IS_SMALLER                                               ~6, 10000
         18      > JMPNZ                                                    ~7, ->8
    7    19    >   INIT_FCALL                                               'ob_end_clean'
         20        DO_ICALL                                                 
    8    21        INIT_FCALL                                               'microtime'
         22        SEND_VAL                                                 1
         23        DO_ICALL                                         $9      
         24        SUB                                              ~10     $9, !0
         25        CONCAT                                           ~11     ~10, '+seconds+for+commas'
         26        ECHO                                                     ~11
   10    27        ECHO                                                     '%0A'
   12    28        INIT_FCALL                                               'ob_start'
         29        DO_ICALL                                                 
   13    30        INIT_FCALL                                               'microtime'
         31        SEND_VAL                                                 1
         32        DO_ICALL                                         $13     
         33        ASSIGN                                                   !0, $13
   14    34        ASSIGN                                                   !1, 0
   15    35      > JMP                                                      ->37
         36    >   ECHO                                                     'abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef'
         37    >   POST_INC                                         ~16     !1
         38        IS_SMALLER                                               ~16, 10000
         39      > JMPNZ                                                    ~17, ->36
   16    40    >   INIT_FCALL                                               'ob_end_clean'
         41        DO_ICALL                                                 
   17    42        INIT_FCALL                                               'microtime'
         43        SEND_VAL                                                 1
         44        DO_ICALL                                         $19     
         45        SUB                                              ~20     $19, !0
         46        CONCAT                                           ~21     ~20, '+seconds+for+dot'
         47        ECHO                                                     ~21
         48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.98 ms | 1400 KiB | 19 Q