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); echo "\n"; 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 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 30
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 30
Branch analysis from position: 37
Branch analysis from position: 30
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/KEhOa
function name:  (null)
number of ops:  47
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
   11    21        ECHO                                                     '%0A'
   13    22        INIT_FCALL                                               'ob_start'
         23        DO_ICALL                                                 
   14    24        INIT_FCALL                                               'microtime'
         25        SEND_VAL                                                 1
         26        DO_ICALL                                         $15     
         27        ASSIGN                                                   !0, $15
   15    28        ASSIGN                                                   !1, 0
   16    29      > JMP                                                      ->34
         30    >   ECHO                                                     'aaaaaaa'
         31        ECHO                                                     'aaaaaaa'
         32        ECHO                                                     'aaaaaaa'
         33        ECHO                                                     'aaaaaaa'
         34    >   POST_INC                                         ~18     !1
         35        IS_SMALLER                                               ~18, 10000
         36      > JMPNZ                                                    ~19, ->30
   17    37    >   INIT_FCALL                                               'microtime'
         38        SEND_VAL                                                 1
         39        DO_ICALL                                         $20     
         40        ASSIGN                                                   !2, $20
   18    41        INIT_FCALL                                               'ob_end_clean'
         42        DO_ICALL                                                 
   19    43        SUB                                              ~23     !2, !0
         44        CONCAT                                           ~24     'comma+took+', ~23
         45        ECHO                                                     ~24
         46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144 ms | 1400 KiB | 19 Q