3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startDate = mktime(0, 0, 0, 8, 20, 2013); $date = date('Y-m-d => D', strtotime("Next Sunday", strtotime("+2 week", $startDate))); var_dump($date);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ICVqg
function name:  (null)
number of ops:  26
compiled vars:  !0 = $startDate, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'mktime'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 8
          5        SEND_VAL                                                 20
          6        SEND_VAL                                                 2013
          7        DO_ICALL                                         $2      
          8        ASSIGN                                                   !0, $2
    4     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y-m-d+%3D%3E+D'
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 'Next+Sunday'
         13        INIT_FCALL                                               'strtotime'
         14        SEND_VAL                                                 '%2B2+week'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $4      
         17        SEND_VAR                                                 $4
         18        DO_ICALL                                         $5      
         19        SEND_VAR                                                 $5
         20        DO_ICALL                                         $6      
         21        ASSIGN                                                   !1, $6
    6    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.65 ms | 1386 KiB | 21 Q