3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.06 ms | 1400 KiB | 19 Q