3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = date_create(date('d-m-Y',strtotime('2014-06-27'))); $date2 = date_create(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/q8Koa
function name:  (null)
number of ops:  30
compiled vars:  !0 = $date1, !1 = $date2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_create'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'd-m-Y'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '2014-06-27'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    3    11        INIT_FCALL                                               'date_create'
         12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'd-m-Y'
         14        INIT_FCALL                                               'strtotime'
         15        SEND_VAL                                                 '2014-07-27'
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                         $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                         $8      
         21        ASSIGN                                                   !1, $8
    4    22        INIT_FCALL                                               'print_r'
         23        INIT_FCALL                                               'date_diff'
         24        SEND_VAR                                                 !1
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $10     
         27        SEND_VAR                                                 $10
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.13 ms | 1387 KiB | 23 Q