3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class util { public static function test(): DateTime { $Format = "Y-m-d H:i:s"; return \DateTime::createFromFormat($Format,gmdate($Format)); } } echo util::test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FaVTi
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', 'test'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

Class util:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FaVTi
function name:  test
number of ops:  12
compiled vars:  !0 = $Format
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'Y-m-d+H%3Ai%3As'
    9     1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'gmdate'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_FCALL                                      0  $3      
          8        VERIFY_RETURN_TYPE                                       $3
          9      > RETURN                                                   $3
   10    10*       VERIFY_RETURN_TYPE                                       
         11*     > RETURN                                                   null

End of function test

End of class util.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.8 ms | 1395 KiB | 15 Q