3v4l.org

run code in 300+ PHP versions simultaneously
<?php $occurenceDate = '2012-05-06 13:32:00'; $dt = new \DateTime( date('Y-m-d H:i:s' , strtotime( $occurenceDate ) ) , new \DateTimeZone( 'GMT' ) ); var_dump($dt); $dt->modify('+561 days'); var_dump($dt);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fmqdf
function name:  (null)
number of ops:  26
compiled vars:  !0 = $occurenceDate, !1 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2012-05-06+13%3A32%3A00'
    5     1        NEW                                              $3      'DateTime'
          2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                         $5      
          9        SEND_VAR_NO_REF_EX                                       $5
         10        NEW                                              $6      'DateTimeZone'
         11        SEND_VAL_EX                                              'GMT'
         12        DO_FCALL                                      0          
         13        SEND_VAR_NO_REF_EX                                       $6
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !1, $3
    7    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
    9    19        INIT_METHOD_CALL                                         !1, 'modify'
         20        SEND_VAL_EX                                              '%2B561+days'
         21        DO_FCALL                                      0          
   11    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.58 ms | 1461 KiB | 16 Q