3v4l.org

run code in 300+ PHP versions simultaneously
<?php $end = DateTime::createFromFormat('Y-m-d H:i:s', '2015-03-29 03:00:00'); var_dump($end); var_dump($end->modify('-15minutes')); ?> object(DateTime)#1 (3) { ["date"]=> string(19) "2015-03-29 03:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Warsaw" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-03-29 03:45:00" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Warsaw" }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OGfav
function name:  (null)
number of ops:  16
compiled vars:  !0 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          1        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          2        SEND_VAL                                                 '2015-03-29+03%3A00%3A00'
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
    2     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    3     8        INIT_FCALL                                               'var_dump'
          9        INIT_METHOD_CALL                                         !0, 'modify'
         10        SEND_VAL_EX                                              '-15minutes'
         11        DO_FCALL                                      0  $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                                 
    5    14        ECHO                                                     'object%28DateTime%29%231+%283%29+%7B%0A++%5B%22date%22%5D%3D%3E%0A++string%2819%29+%222015-03-29+03%3A00%3A00%22%0A++%5B%22timezone_type%22%5D%3D%3E%0A++int%283%29%0A++%5B%22timezone%22%5D%3D%3E%0A++string%2813%29+%22Europe%2FWarsaw%22%0A%7D%0Aobject%28DateTime%29%231+%283%29+%7B%0A++%5B%22date%22%5D%3D%3E%0A++string%2819%29+%222015-03-29+03%3A45%3A00%22%0A++%5B%22timezone_type%22%5D%3D%3E%0A++int%283%29%0A++%5B%22timezone%22%5D%3D%3E%0A++string%2813%29+%22Europe%2FWarsaw%22%0A%7D'
   20    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.12 ms | 1395 KiB | 15 Q