3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
176.33 ms | 3326 KiB | 15 Q