3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((new DateTime)->add(new DateInterval('P1Y'))->format('Y-m-d'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eCrAr
function name:  (null)
number of ops:  15
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'var_dump'
         1        NEW                                              $0      :-4
         2        DO_FCALL                                      0          
         3        INIT_METHOD_CALL                                         $0, 'add'
         4        NEW                                              $2      :0
         5        SEND_VAL_EX                                              'P1Y'
         6        DO_FCALL                                      0          
         7        SEND_VAR_NO_REF_EX                                       $2
         8        DO_FCALL                                      0  $4      
         9        INIT_METHOD_CALL                                         $4, 'format'
        10        SEND_VAL_EX                                              'Y-m-d'
        11        DO_FCALL                                      0  $5      
        12        SEND_VAR                                                 $5
        13        DO_ICALL                                                 
        14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0