3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); for ($i = 0; $i < 1000; ++$i) { bcdiv(40075036, 86164.098903691, 40); } echo 1000*(microtime(true) - $start); echo "\n"; $start = microtime(true); for ($i = 0; $i < 1000; ++$i) { $a = 40075036/ 86164.098903691; } echo 1000*(microtime(true) - $start);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 27
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 27
Branch analysis from position: 31
Branch analysis from position: 27
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/gfuoo
function name:  (null)
number of ops:  38
compiled vars:  !0 = $start, !1 = $i, !2 = $a
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      > JMP                                                      ->12
    5     6    >   INIT_FCALL_BY_NAME                                       'bcdiv'
          7        SEND_VAL_EX                                              40075036
          8        SEND_VAL_EX                                              86164.1
          9        SEND_VAL_EX                                              40
         10        DO_FCALL                                      0          
    4    11        PRE_INC                                                  !1
         12    >   IS_SMALLER                                               !1, 1000
         13      > JMPNZ                                                    ~8, ->6
    8    14    >   INIT_FCALL                                               'microtime'
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $9      
         17        SUB                                              ~10     $9, !0
         18        MUL                                              ~11     ~10, 1000
         19        ECHO                                                     ~11
    9    20        ECHO                                                     '%0A'
   11    21        INIT_FCALL                                               'microtime'
         22        SEND_VAL                                                 <true>
         23        DO_ICALL                                         $12     
         24        ASSIGN                                                   !0, $12
   12    25        ASSIGN                                                   !1, 0
         26      > JMP                                                      ->29
   13    27    >   ASSIGN                                                   !2, 465.101
   12    28        PRE_INC                                                  !1
         29    >   IS_SMALLER                                               !1, 1000
         30      > JMPNZ                                                    ~17, ->27
   16    31    >   INIT_FCALL                                               'microtime'
         32        SEND_VAL                                                 <true>
         33        DO_ICALL                                         $18     
         34        SUB                                              ~19     $18, !0
         35        MUL                                              ~20     ~19, 1000
         36        ECHO                                                     ~20
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.05 ms | 945 KiB | 16 Q