3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set ("UTC"); $date = DateTime::createFromFormat('U.u', microtime(true)); print_r($date); $current_time = $date->format('Y-m-d H:i:s'); echo $current_time; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hoB0u
function name:  (null)
number of ops:  20
compiled vars:  !0 = $date, !1 = $current_time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'UTC'
          2        DO_ICALL                                                 
    3     3        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          4        SEND_VAL                                                 'U.u'
          5        INIT_FCALL                                               'microtime'
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_FCALL                                      0  $4      
         10        ASSIGN                                                   !0, $4
    4    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    6    14        INIT_METHOD_CALL                                         !0, 'format'
         15        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         16        DO_FCALL                                      0  $7      
         17        ASSIGN                                                   !1, $7
    7    18        ECHO                                                     !1
    8    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.87 ms | 1399 KiB | 19 Q