3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timer = microtime(1); ob_start(); for ($i=1;$i<=100000;$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 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/pSamg
function name:  (null)
number of ops:  31
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                                                      ->13
    5     8    >   ECHO                                                     'a'
          9        ECHO                                                     'a'
         10        ECHO                                                     'a'
         11        ECHO                                                     'a'
    4    12        PRE_INC                                                  !1
         13    >   IS_SMALLER_OR_EQUAL                                      !1, 100000
         14      > JMPNZ                                                    ~7, ->8
    6    15    >   INIT_FCALL                                               'ob_clean'
         16        DO_ICALL                                                 
    7    17        INIT_FCALL                                               'round'
         18        INIT_FCALL                                               'microtime'
         19        SEND_VAL                                                 1
         20        DO_ICALL                                         $9      
         21        SUB                                              ~10     $9, !0
         22        SEND_VAL                                                 ~10
         23        SEND_VAL                                                 3
         24        DO_ICALL                                         $11     
         25        ASSIGN                                                   !0, $11
    8    26        CONCAT                                           ~13     '%2C+took%3A+', !0
         27        CONCAT                                           ~14     ~13, '+seconds'
         28        CONCAT                                           ~15     ~14, '%0A'
         29        ECHO                                                     ~15
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.42 ms | 1396 KiB | 21 Q