3v4l.org

run code in 300+ PHP versions simultaneously
<?php $billingDate = new \DateTime('2017-02-15'); $todayDate = new \DateTime(); $interval = date_diff($billingDate, $todayDate); $this->feePackageInfo->setDaysLeft($interval->d); echo $interval->d;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d42qs
function name:  (null)
number of ops:  22
compiled vars:  !0 = $billingDate, !1 = $todayDate, !2 = $interval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DateTime'
          1        SEND_VAL_EX                                              '2017-02-15'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    4     4        NEW                                              $6      'DateTime'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $6
    5     7        INIT_FCALL                                               'date_diff'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !2, $9
    6    12        FETCH_THIS                                       $11     
         13        FETCH_OBJ_R                                      ~12     $11, 'feePackageInfo'
         14        INIT_METHOD_CALL                                         ~12, 'setDaysLeft'
         15        CHECK_FUNC_ARG                                           
         16        FETCH_OBJ_FUNC_ARG                               $13     !2, 'd'
         17        SEND_FUNC_ARG                                            $13
         18        DO_FCALL                                      0          
    7    19        FETCH_OBJ_R                                      ~15     !2, 'd'
         20        ECHO                                                     ~15
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.21 ms | 1395 KiB | 15 Q