3v4l.org

run code in 300+ PHP versions simultaneously
<?php class util { public static function test(): string { return \DateTime::createFromFormat("Y-m-d H:i:s",time())->format("Y-m-d H:i:s"); } } echo util::test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fSAcl
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     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/fSAcl
function name:  test
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          1        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          2        INIT_FCALL                                               'time'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_FCALL                                      0  $1      
          6        INIT_METHOD_CALL                                         $1, 'format'
          7        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
          8        DO_FCALL                                      0  $2      
          9        VERIFY_RETURN_TYPE                                       $2
         10      > RETURN                                                   $2
    8    11*       VERIFY_RETURN_TYPE                                       
         12*     > RETURN                                                   null

End of function test

End of class util.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.54 ms | 1395 KiB | 15 Q