3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = date_create("2012-01-01"); $date2 = date_create("2016-07-31"); $diff = date_diff($date1,$date2); echo $diff->format("%y yıl %m ay %d gün");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mFpnd
function name:  (null)
number of ops:  18
compiled vars:  !0 = $date1, !1 = $date2, !2 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_create'
          1        SEND_VAL                                                 '2012-01-01'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'date_create'
          5        SEND_VAL                                                 '2016-07-31'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    5     8        INIT_FCALL                                               'date_diff'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    7    13        INIT_METHOD_CALL                                         !2, 'format'
         14        SEND_VAL_EX                                              '%25y+y%C4%B1l+%25m+ay+%25d+g%C3%BCn'
         15        DO_FCALL                                      0  $9      
         16        ECHO                                                     $9
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.48 ms | 1459 KiB | 15 Q