3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(); for ($i = 0;$i<2;$i++) { fmod(34, 4294967296); } $end = microtime(); echo "fmod: ".$end-$start."<br>\n"; $start = microtime(); for ($i = 0;$i<2;$i++) { bcmod('34', '4294967296'); } $end = microtime(); echo "bcmod: ".$end-$start."<br>\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 24
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 24
Branch analysis from position: 31
Branch analysis from position: 24
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
Branch analysis from position: 5
filename:       /in/O4IA0
function name:  (null)
number of ops:  39
compiled vars:  !0 = $start, !1 = $i, !2 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    4     3        ASSIGN                                                   !1, 0
          4      > JMP                                                      ->10
    5     5    >   INIT_FCALL                                               'fmod'
          6        SEND_VAL                                                 34
          7        SEND_VAL                                                 4294967296
          8        DO_ICALL                                                 
    4     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 2
         11      > JMPNZ                                                    ~8, ->5
    7    12    >   INIT_FCALL                                               'microtime'
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
    8    15        SUB                                              ~11     !2, !0
         16        CONCAT                                           ~12     'fmod%3A+', ~11
         17        CONCAT                                           ~13     ~12, '%3Cbr%3E%0A'
         18        ECHO                                                     ~13
   10    19        INIT_FCALL                                               'microtime'
         20        DO_ICALL                                         $14     
         21        ASSIGN                                                   !0, $14
   11    22        ASSIGN                                                   !1, 0
         23      > JMP                                                      ->29
   12    24    >   INIT_FCALL_BY_NAME                                       'bcmod'
         25        SEND_VAL_EX                                              '34'
         26        SEND_VAL_EX                                              '4294967296'
         27        DO_FCALL                                      0          
   11    28        PRE_INC                                                  !1
         29    >   IS_SMALLER                                               !1, 2
         30      > JMPNZ                                                    ~19, ->24
   14    31    >   INIT_FCALL                                               'microtime'
         32        DO_ICALL                                         $20     
         33        ASSIGN                                                   !2, $20
   15    34        SUB                                              ~22     !2, !0
         35        CONCAT                                           ~23     'bcmod%3A+', ~22
         36        CONCAT                                           ~24     ~23, '%3Cbr%3E%0A'
         37        ECHO                                                     ~24
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.26 ms | 1400 KiB | 17 Q