3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('T'); $now = DateTime::createFromFormat('U.u', number_format(microtime(true), 6, '.', ''))->setTimezone(new \DateTimeZone(CEST)); echo $now->format("Ymd H:i:s");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O0iRv
function name:  (null)
number of ops:  30
compiled vars:  !0 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'T'
          2        DO_ICALL                                         $1      
          3        ECHO                                                     $1
    3     4        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          5        SEND_VAL                                                 'U.u'
          6        INIT_FCALL                                               'number_format'
          7        INIT_FCALL                                               'microtime'
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        SEND_VAL                                                 6
         12        SEND_VAL                                                 '.'
         13        SEND_VAL                                                 ''
         14        DO_ICALL                                         $3      
         15        SEND_VAR                                                 $3
         16        DO_FCALL                                      0  $4      
         17        INIT_METHOD_CALL                                         $4, 'setTimezone'
         18        NEW                                              $5      'DateTimeZone'
         19        FETCH_CONSTANT                                   ~6      'CEST'
         20        SEND_VAL_EX                                              ~6
         21        DO_FCALL                                      0          
         22        SEND_VAR_NO_REF_EX                                       $5
         23        DO_FCALL                                      0  $8      
         24        ASSIGN                                                   !0, $8
    4    25        INIT_METHOD_CALL                                         !0, 'format'
         26        SEND_VAL_EX                                              'Ymd+H%3Ai%3As'
         27        DO_FCALL                                      0  $10     
         28        ECHO                                                     $10
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.31 ms | 1395 KiB | 19 Q