3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timer = microtime(1); ob_start(); for ($i=1;$i<=1000000;$i++) echo 'a'.'a'.'a'.'a'; ob_clean(); $timer = round(microtime(1) - $timer, 3); echo ', took: '.$timer. ' seconds'.PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 8
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
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/J0JEd
function name:  (null)
number of ops:  28
compiled vars:  !0 = $timer, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 1
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'ob_start'
          5        DO_ICALL                                                 
    4     6        ASSIGN                                                   !1, 1
          7      > JMP                                                      ->10
    5     8    >   ECHO                                                     'aaaa'
    4     9        PRE_INC                                                  !1
         10    >   IS_SMALLER_OR_EQUAL                                      !1, 1000000
         11      > JMPNZ                                                    ~7, ->8
    6    12    >   INIT_FCALL                                               'ob_clean'
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'round'
         15        INIT_FCALL                                               'microtime'
         16        SEND_VAL                                                 1
         17        DO_ICALL                                         $9      
         18        SUB                                              ~10     $9, !0
         19        SEND_VAL                                                 ~10
         20        SEND_VAL                                                 3
         21        DO_ICALL                                         $11     
         22        ASSIGN                                                   !0, $11
    8    23        CONCAT                                           ~13     '%2C+took%3A+', !0
         24        CONCAT                                           ~14     ~13, '+seconds'
         25        CONCAT                                           ~15     ~14, '%0A'
         26        ECHO                                                     ~15
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.12 ms | 1395 KiB | 21 Q