3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new \DateTime('2015-05-24 00:00:00'); $time = new \DateTime('0000-00-00 21:22:00'); $pickUpDateTime = new \DateTime(); $pickUpDateTime->setDate($date->format('Y'), $date->format('m'), $date->format('d')); $pickUpDateTime->setTime($time->format('H'), $time->format('i'), $time->format('s')); $now = new DateTime("now"); $interval = date_diff($now, $pickUpDateTime); echo ($interval->d);
based on eZVCO
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BicUF
function name:  (null)
number of ops:  51
compiled vars:  !0 = $date, !1 = $time, !2 = $pickUpDateTime, !3 = $now, !4 = $interval
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NEW                                              $5      :-5
         1        SEND_VAL_EX                                              '2015-05-24+00%3A00%3A00'
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $5
   3     4        NEW                                              $8      :-2
         5        SEND_VAL_EX                                              '0000-00-00+21%3A22%3A00'
         6        DO_FCALL                                      0          
         7        ASSIGN                                                   !1, $8
   5     8        NEW                                              $11     :1
         9        DO_FCALL                                      0          
        10        ASSIGN                                                   !2, $11
   6    11        INIT_METHOD_CALL                                         !2, 'setDate'
        12        INIT_METHOD_CALL                                         !0, 'format'
        13        SEND_VAL_EX                                              'Y'
        14        DO_FCALL                                      0  $14     
        15        SEND_VAR_NO_REF_EX                                       $14
        16        INIT_METHOD_CALL                                         !0, 'format'
        17        SEND_VAL_EX                                              'm'
        18        DO_FCALL                                      0  $15     
        19        SEND_VAR_NO_REF_EX                                       $15
        20        INIT_METHOD_CALL                                         !0, 'format'
        21        SEND_VAL_EX                                              'd'
        22        DO_FCALL                                      0  $16     
        23        SEND_VAR_NO_REF_EX                                       $16
        24        DO_FCALL                                      0          
   7    25        INIT_METHOD_CALL                                         !2, 'setTime'
        26        INIT_METHOD_CALL                                         !1, 'format'
        27        SEND_VAL_EX                                              'H'
        28        DO_FCALL                                      0  $18     
        29        SEND_VAR_NO_REF_EX                                       $18
        30        INIT_METHOD_CALL                                         !1, 'format'
        31        SEND_VAL_EX                                              'i'
        32        DO_FCALL                                      0  $19     
        33        SEND_VAR_NO_REF_EX                                       $19
        34        INIT_METHOD_CALL                                         !1, 'format'
        35        SEND_VAL_EX                                              's'
        36        DO_FCALL                                      0  $20     
        37        SEND_VAR_NO_REF_EX                                       $20
        38        DO_FCALL                                      0          
   9    39        NEW                                              $22     :25
        40        SEND_VAL_EX                                              'now'
        41        DO_FCALL                                      0          
        42        ASSIGN                                                   !3, $22
  11    43        INIT_FCALL                                               'date_diff'
        44        SEND_VAR                                                 !3
        45        SEND_VAR                                                 !2
        46        DO_ICALL                                         $25     
        47        ASSIGN                                                   !4, $25
  12    48        FETCH_OBJ_R                                      $27     !4, 'd'
        49        ECHO                                                     $27
        50      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0