3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xy = microtime(true); $n = 10000; while (--$n) { $a = 'hello, world!'; } // multiplication and formatting do not count as they go after the subtraction echo ("\nExecution took: " . number_format((microtime(true) - $xy) * 1000000, 0, '.', '') . " microsecond(s).\n");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 6
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 6
Branch analysis from position: 9
Branch analysis from position: 6
filename:       /in/V6dC1
function name:  (null)
number of ops:  24
compiled vars:  !0 = $xy, !1 = $n, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        ASSIGN                                                   !1, 10000
    5     5      > JMP                                                      ->7
    7     6    >   ASSIGN                                                   !2, 'hello%2C+world%21'
    5     7    >   PRE_DEC                                          ~7      !1
          8      > JMPNZ                                                    ~7, ->6
   11     9    >   INIT_FCALL                                               'number_format'
         10        INIT_FCALL                                               'microtime'
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $8      
         13        SUB                                              ~9      $8, !0
         14        MUL                                              ~10     ~9, 1000000
         15        SEND_VAL                                                 ~10
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 '.'
         18        SEND_VAL                                                 ''
         19        DO_ICALL                                         $11     
         20        CONCAT                                           ~12     '%0AExecution+took%3A+', $11
         21        CONCAT                                           ~13     ~12, '+microsecond%28s%29.%0A'
         22        ECHO                                                     ~13
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.95 ms | 1395 KiB | 17 Q