3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( date('Y-m-d H:i:s', strtotime('06:00:00', strtotime('2019-09-20T00:00:00')))); var_dump(new DateTime('2019-09-20T 06:00:00'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cUEN5
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '06%3A00%3A00'
          5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 '2019-09-20T00%3A00%3A00'
          7        DO_ICALL                                         $0      
          8        SEND_VAR                                                 $0
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
    8    14        INIT_FCALL                                               'var_dump'
         15        NEW                                              $4      'DateTime'
         16        SEND_VAL_EX                                              '2019-09-20T+06%3A00%3A00'
         17        DO_FCALL                                      0          
         18        SEND_VAR                                                 $4
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.9 ms | 1012 KiB | 16 Q