3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class util { public static function DateTimeNowGMT(): \DateTime { $Date = new \DateTime('now', new \DateTimeZone("UTC")); return $Date; } } echo util::DateTimeNowGMT();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W5W4h
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                  'util', 'DateTimeNowGMT'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

Class util:
Function datetimenowgmt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W5W4h
function name:  DateTimeNowGMT
number of ops:  12
compiled vars:  !0 = $Date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'DateTime'
          1        SEND_VAL_EX                                              'now'
          2        NEW                                              $2      'DateTimeZone'
          3        SEND_VAL_EX                                              'UTC'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $2
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $1
    9     8        VERIFY_RETURN_TYPE                                       !0
          9      > RETURN                                                   !0
   10    10*       VERIFY_RETURN_TYPE                                       
         11*     > RETURN                                                   null

End of function datetimenowgmt

End of class util.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.58 ms | 1393 KiB | 13 Q