3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = microtime(true); $micro = sprintf("%06d",($t - floor($t)) * 1000000); $d = new DateTime( date('Y-m-d H:i:s.'.$micro,$t) ); print $d->format("YmdHisu"); // note at point on "u"
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/273NH
function name:  (null)
number of ops:  28
compiled vars:  !0 = $t, !1 = $micro, !2 = $d
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        INIT_FCALL                                               'sprintf'
          5        SEND_VAL                                                 '%2506d'
          6        INIT_FCALL                                               'floor'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        SUB                                              ~6      !0, $5
         10        MUL                                              ~7      ~6, 1000000
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !1, $8
    5    14        NEW                                              $10     'DateTime'
         15        INIT_FCALL                                               'date'
         16        CONCAT                                           ~11     'Y-m-d+H%3Ai%3As.', !1
         17        SEND_VAL                                                 ~11
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $12     
         20        SEND_VAR_NO_REF_EX                                       $12
         21        DO_FCALL                                      0          
         22        ASSIGN                                                   !2, $10
    7    23        INIT_METHOD_CALL                                         !2, 'format'
         24        SEND_VAL_EX                                              'YmdHisu'
         25        DO_FCALL                                      0  $15     
         26        ECHO                                                     $15
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.85 ms | 1387 KiB | 21 Q