3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $di = new DateInterval('P1D'); echo date_create('@0')->add($di)->getTimestamp();
based on 1bJW8
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/0WqLE
function name:  (null)
number of ops:  14
compiled vars:  !0 = $di
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $1      :-6
         1        SEND_VAL_EX                                              'P1D'
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $1
   4     4        INIT_FCALL                                               'date_create'
         5        SEND_VAL                                                 '%400'
         6        DO_ICALL                                         $4      
         7        INIT_METHOD_CALL                                         $4, 'add'
         8        SEND_VAR_EX                                              !0
         9        DO_FCALL                                      0  $5      
        10        INIT_METHOD_CALL                                         $5, 'getTimestamp'
        11        DO_FCALL                                      0  $6      
        12        ECHO                                                     $6
        13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0