3v4l.org

run code in 300+ PHP versions simultaneously
<?php function GetFormattedMicroTime($timestamp = false) { return DateTime::createFromFormat('u','5')->format('Y-m-d\TH:i:s.u'); } $test = GetFormattedMicroTime(); print_r($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eJeWF
function name:  (null)
number of ops:  7
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'getformattedmicrotime'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
    6     3        INIT_FCALL                                               'print_r'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function getformattedmicrotime:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eJeWF
function name:  GetFormattedMicroTime
number of ops:  10
compiled vars:  !0 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      <false>
    3     1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAL                                                 'u'
          3        SEND_VAL                                                 '5'
          4        DO_FCALL                                      0  $1      
          5        INIT_METHOD_CALL                                         $1, 'format'
          6        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3As.u'
          7        DO_FCALL                                      0  $2      
          8      > RETURN                                                   $2
    4     9*     > RETURN                                                   null

End of function getformattedmicrotime

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.16 ms | 1397 KiB | 16 Q