3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dStart = new DateTime('2012-08-26'); $dEnd = new DateTime('2012-07-26'); $dDiff = $dStart->diff($dEnd); echo $dDiff->format('%R'); // use for point out relation: smaller/greater echo $dDiff->days;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EgVIA
function name:  (null)
number of ops:  19
compiled vars:  !0 = $dStart, !1 = $dEnd, !2 = $dDiff
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $3      :-5
         1        SEND_VAL_EX                                              '2012-08-26'
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $3
   4     4        NEW                                              $6      :-2
         5        SEND_VAL_EX                                              '2012-07-26'
         6        DO_FCALL                                      0          
         7        ASSIGN                                                   !1, $6
   5     8        INIT_METHOD_CALL                                         !0, 'diff'
         9        SEND_VAR_EX                                              !1
        10        DO_FCALL                                      0  $9      
        11        ASSIGN                                                   !2, $9
   6    12        INIT_METHOD_CALL                                         !2, 'format'
        13        SEND_VAL_EX                                              '%25R'
        14        DO_FCALL                                      0  $11     
        15        ECHO                                                     $11
   7    16        FETCH_OBJ_R                                      $12     !2, 'days'
        17        ECHO                                                     $12
        18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0