3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $enddate = new DateTime(); $interval = new DateInterval('P12M'); $enddate->add($interval); echo $enddate;
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/AN2lS
function name:  (null)
number of ops:  12
compiled vars:  !0 = $enddate, !1 = $interval
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $2      :-6
         1        DO_FCALL                                      0          
         2        ASSIGN                                                   !0, $2
   4     3        NEW                                              $5      :-4
         4        SEND_VAL_EX                                              'P12M'
         5        DO_FCALL                                      0          
         6        ASSIGN                                                   !1, $5
   5     7        INIT_METHOD_CALL                                         !0, 'add'
         8        SEND_VAR_EX                                              !1
         9        DO_FCALL                                      0          
   6    10        ECHO                                                     !0
        11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.1.0