3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(1); for($i = 0; $i < 10000000; $i++) { $b = $i; } echo round(array_sum(explode(' ', microtime())) - array_sum(explode(' ', $start)), 3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 6
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 6
Branch analysis from position: 10
Branch analysis from position: 6
filename:       /in/fnKVk
function name:  (null)
number of ops:  33
compiled vars:  !0 = $start, !1 = $i, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 1
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->8
    4     6    >   ASSIGN                                                   !2, !1
    3     7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 10000000
          9      > JMPNZ                                                    ~8, ->6
    7    10    >   INIT_FCALL                                               'round'
         11        INIT_FCALL                                               'array_sum'
         12        INIT_FCALL                                               'explode'
         13        SEND_VAL                                                 '+'
         14        INIT_FCALL                                               'microtime'
         15        DO_ICALL                                         $9      
         16        SEND_VAR                                                 $9
         17        DO_ICALL                                         $10     
         18        SEND_VAR                                                 $10
         19        DO_ICALL                                         $11     
         20        INIT_FCALL                                               'array_sum'
         21        INIT_FCALL                                               'explode'
         22        SEND_VAL                                                 '+'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $12     
         25        SEND_VAR                                                 $12
         26        DO_ICALL                                         $13     
         27        SUB                                              ~14     $11, $13
         28        SEND_VAL                                                 ~14
         29        SEND_VAL                                                 3
         30        DO_ICALL                                         $15     
         31        ECHO                                                     $15
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.05 ms | 1396 KiB | 21 Q