3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = date('d-m-Y',strtotime('2014-06-27')); $date2 = date('d-m-Y',strtotime('2014-07-27')); print_r(date_diff($date2, $date1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iAndj
function name:  (null)
number of ops:  24
compiled vars:  !0 = $date1, !1 = $date2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'd-m-Y'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '2014-06-27'
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
    3     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'd-m-Y'
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 '2014-07-27'
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        ASSIGN                                                   !1, $6
    4    16        INIT_FCALL                                               'print_r'
         17        INIT_FCALL                                               'date_diff'
         18        SEND_VAR                                                 !1
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $8      
         21        SEND_VAR                                                 $8
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.92 ms | 1395 KiB | 21 Q