3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date_diff(date( 'd-m-Y', strtotime('2015-03-07') ),date( 'd-m-Y', strtotime("+ 7 days") ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GGA48
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_diff'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'd-m-Y'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '2015-03-07'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'd-m-Y'
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 '%2B+7+days'
         13        DO_ICALL                                         $2      
         14        SEND_VAR                                                 $2
         15        DO_ICALL                                         $3      
         16        SEND_VAR                                                 $3
         17        DO_ICALL                                         $4      
         18        ECHO                                                     $4
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.26 ms | 1386 KiB | 19 Q