3v4l.org

run code in 300+ PHP versions simultaneously
<?php $week = "+1 weeks"; //"+". $dt . "week" $str = 'jan 01, 2016';//$jinput->get('start_date') $date = date_create($str); $choosendate = date_format($date, "m/d/Y"); $newdate = strtotime($week, strtotime($choosendate)); echo date('M d, Y', $newdate);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SYltO
function name:  (null)
number of ops:  25
compiled vars:  !0 = $week, !1 = $str, !2 = $date, !3 = $choosendate, !4 = $newdate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2B1+weeks'
    3     1        ASSIGN                                                   !1, 'jan+01%2C+2016'
    4     2        INIT_FCALL                                               'date_create'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !2, $7
    5     6        INIT_FCALL                                               'date_format'
          7        SEND_VAR                                                 !2
          8        SEND_VAL                                                 'm%2Fd%2FY'
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !3, $9
    6    11        INIT_FCALL                                               'strtotime'
         12        SEND_VAR                                                 !0
         13        INIT_FCALL                                               'strtotime'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                         $11     
         16        SEND_VAR                                                 $11
         17        DO_ICALL                                         $12     
         18        ASSIGN                                                   !4, $12
    7    19        INIT_FCALL                                               'date'
         20        SEND_VAL                                                 'M+d%2C+Y'
         21        SEND_VAR                                                 !4
         22        DO_ICALL                                         $14     
         23        ECHO                                                     $14
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.93 ms | 1000 KiB | 17 Q