3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); $counter = 0; for ($i=0; $i < 1000000; $i++) { $counter++; } echo 'Executime: ' . round(microtime(true) - $start, 4) . ' seconds.';
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 = 11, Position 2 = 7
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 7
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/j1poH
function name:  (null)
number of ops:  23
compiled vars:  !0 = $start, !1 = $counter, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        ASSIGN                                                   !1, 0
    5     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->9
    6     7    >   PRE_INC                                                  !1
    5     8        PRE_INC                                                  !2
          9    >   IS_SMALLER                                               !2, 1000000
         10      > JMPNZ                                                    ~9, ->7
    8    11    >   INIT_FCALL                                               'round'
         12        INIT_FCALL                                               'microtime'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $10     
         15        SUB                                              ~11     $10, !0
         16        SEND_VAL                                                 ~11
         17        SEND_VAL                                                 4
         18        DO_ICALL                                         $12     
         19        CONCAT                                           ~13     'Executime%3A+', $12
         20        CONCAT                                           ~14     ~13, '+seconds.'
         21        ECHO                                                     ~14
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.23 ms | 1395 KiB | 17 Q