3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class util { public static function test(): DateTime { return \DateTime::createFromFormat("Y-m-d H:i:s",time()); } } echo util::test();
based on l37O8
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/C2OqK
function name:  (null)
number of ops:  5
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  11     1        INIT_STATIC_METHOD_CALL                                  'util', 'test'
         2        DO_FCALL                                      0  $1      
         3        ECHO                                                     $1
         4      > RETURN                                                   1

Class util:
Function test:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/C2OqK
function name:  test
number of ops:  10
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   7     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
         1        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         2        INIT_FCALL                                               'time'
         3        DO_ICALL                                         $0      
         4        SEND_VAR_NO_REF                               4          $0
         5        DO_FCALL                                      0  $1      
         6        VERIFY_RETURN_TYPE                                       $1
         7      > RETURN                                                   $1
   8     8*       VERIFY_RETURN_TYPE                                       
         9*     > RETURN                                                   null

End of function test

End of class util.

Generated using Vulcan Logic Dumper, using php 7.1.0