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 = $time->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/HQZ2v
function name:  (null)
number of ops:  20
compiled vars:  !0 = $date, !1 = $current_time, !2 = $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                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_FCALL                                      0  $5      
         10        ASSIGN                                                   !0, $5
    4    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    6    14        INIT_METHOD_CALL                                         !2, 'format'
         15        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         16        DO_FCALL                                      0  $8      
         17        ASSIGN                                                   !1, $8
    7    18        ECHO                                                     !1
    8    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.98 ms | 1395 KiB | 19 Q