3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cuttoff_time = "16:00"; date_default_timezone_set('Europe/London'); $datedelivery = new DateTime('NOW'); $store_ending_time = explode(":", $cuttoff_time); // what time on the day is cuttoff $datedelivery->setTime($store_ending_time[0], $store_ending_time[1]); print_r($datedelivery); //$datedelivery->modify('+1 weekday');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IKBR8
function name:  (null)
number of ops:  25
compiled vars:  !0 = $cuttoff_time, !1 = $datedelivery, !2 = $store_ending_time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '16%3A00'
    3     1        INIT_FCALL                                               'date_default_timezone_set'
          2        SEND_VAL                                                 'Europe%2FLondon'
          3        DO_ICALL                                                 
    4     4        NEW                                              $5      'DateTime'
          5        SEND_VAL_EX                                              'NOW'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    5     8        INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%3A'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
    6    13        INIT_METHOD_CALL                                         !1, 'setTime'
         14        CHECK_FUNC_ARG                                           
         15        FETCH_DIM_FUNC_ARG                               $10     !2, 0
         16        SEND_FUNC_ARG                                            $10
         17        CHECK_FUNC_ARG                                           
         18        FETCH_DIM_FUNC_ARG                               $11     !2, 1
         19        SEND_FUNC_ARG                                            $11
         20        DO_FCALL                                      0          
    7    21        INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
    8    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.34 ms | 1395 KiB | 19 Q