3v4l.org

run code in 300+ PHP versions simultaneously
<?php $delidate = "2014-04-04"; $deliveryDay = "Friday"; $monthlyDate = new DateTime($delidate); $monthlyDate->modify("first friday of next month"); $monthly = $monthlyDate->format('Y-m-d'); echo "<br>##".$monthly;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J1MnF
function name:  (null)
number of ops:  16
compiled vars:  !0 = $delidate, !1 = $deliveryDay, !2 = $monthlyDate, !3 = $monthly
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2014-04-04'
    4     1        ASSIGN                                                   !1, 'Friday'
    5     2        NEW                                              $6      'DateTime'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !2, $6
    6     6        INIT_METHOD_CALL                                         !2, 'modify'
          7        SEND_VAL_EX                                              'first+friday+of+next+month'
          8        DO_FCALL                                      0          
    7     9        INIT_METHOD_CALL                                         !2, 'format'
         10        SEND_VAL_EX                                              'Y-m-d'
         11        DO_FCALL                                      0  $10     
         12        ASSIGN                                                   !3, $10
    8    13        CONCAT                                           ~12     '%3Cbr%3E%23%23', !3
         14        ECHO                                                     ~12
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.05 ms | 1384 KiB | 13 Q