3v4l.org

run code in 300+ PHP versions simultaneously
<?php $occurenceDate = '2012-05-06 13:32:00'; $dt = new \DateTime( $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/s891t
function name:  (null)
number of ops:  19
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        SEND_VAR_EX                                              !0
          3        NEW                                              $4      'DateTimeZone'
          4        SEND_VAL_EX                                              'GMT'
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $4
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $3
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    9    12        INIT_METHOD_CALL                                         !1, 'modify'
         13        SEND_VAL_EX                                              '%2B561+days'
         14        DO_FCALL                                      0          
   11    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.12 ms | 1394 KiB | 15 Q