3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.85 ms | 1395 KiB | 17 Q