3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array(); $b=null; $e=null; $l=100; $i=0; while($i++ < $l){ $b=microtime(true); $e=microtime(true); $a[] = $e - $b; } var_dump(array_sum($a) / count($a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
Branch analysis from position: 6
filename:       /in/eeXIG
function name:  (null)
number of ops:  29
compiled vars:  !0 = $a, !1 = $b, !2 = $e, !3 = $l, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, null
    4     2        ASSIGN                                                   !2, null
    5     3        ASSIGN                                                   !3, 100
    6     4        ASSIGN                                                   !4, 0
    7     5      > JMP                                                      ->17
    8     6    >   INIT_FCALL                                               'microtime'
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $10     
          9        ASSIGN                                                   !1, $10
    9    10        INIT_FCALL                                               'microtime'
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $12     
         13        ASSIGN                                                   !2, $12
   10    14        SUB                                              ~15     !2, !1
         15        ASSIGN_DIM                                               !0
         16        OP_DATA                                                  ~15
    7    17    >   POST_INC                                         ~16     !4
         18        IS_SMALLER                                               ~16, !3
         19      > JMPNZ                                                    ~17, ->6
   12    20    >   INIT_FCALL                                               'var_dump'
         21        INIT_FCALL                                               'array_sum'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $18     
         24        COUNT                                            ~19     !0
         25        DIV                                              ~20     $18, ~19
         26        SEND_VAL                                                 ~20
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.13 ms | 1396 KiB | 19 Q