3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.91 ms | 1394 KiB | 17 Q