3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stamp=(string)(int)(microtime(true)*1000000); $stamp2=bcmul(number_format(microtime(true),17,".",""),"1000000",0); var_dump($stamp,$stamp2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8KjeK
function name:  (null)
number of ops:  27
compiled vars:  !0 = $stamp, !1 = $stamp2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $2      
          3        MUL                                              ~3      $2, 1000000
          4        CAST                                          4  ~4      ~3
          5        CAST                                          6  ~5      ~4
          6        ASSIGN                                                   !0, ~5
    4     7        INIT_FCALL_BY_NAME                                       'bcmul'
          8        INIT_FCALL                                               'number_format'
          9        INIT_FCALL                                               'microtime'
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        SEND_VAL                                                 17
         14        SEND_VAL                                                 '.'
         15        SEND_VAL                                                 ''
         16        DO_ICALL                                         $8      
         17        SEND_VAR_NO_REF_EX                                       $8
         18        SEND_VAL_EX                                              '1000000'
         19        SEND_VAL_EX                                              0
         20        DO_FCALL                                      0  $9      
         21        ASSIGN                                                   !1, $9
    6    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !0
         24        SEND_VAR                                                 !1
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.74 ms | 1395 KiB | 19 Q