3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstDeliveryDate = new \DateTime('2017-02-10T00:00:00Z'); $changeFrom = clone $firstDeliveryDate; $changeFrom->modify('Monday this week'); echo $changeFrom->format('Y-m-d') . PHP_EOL; echo $changeFrom->format('c') . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vNnDc
function name:  (null)
number of ops:  20
compiled vars:  !0 = $firstDeliveryDate, !1 = $changeFrom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2017-02-10T00%3A00%3A00Z'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        CLONE                                            ~5      !0
          5        ASSIGN                                                   !1, ~5
    5     6        INIT_METHOD_CALL                                         !1, 'modify'
          7        SEND_VAL_EX                                              'Monday+this+week'
          8        DO_FCALL                                      0          
    6     9        INIT_METHOD_CALL                                         !1, 'format'
         10        SEND_VAL_EX                                              'Y-m-d'
         11        DO_FCALL                                      0  $8      
         12        CONCAT                                           ~9      $8, '%0A'
         13        ECHO                                                     ~9
    7    14        INIT_METHOD_CALL                                         !1, 'format'
         15        SEND_VAL_EX                                              'c'
         16        DO_FCALL                                      0  $10     
         17        CONCAT                                           ~11     $10, '%0A'
         18        ECHO                                                     ~11
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.84 ms | 1393 KiB | 13 Q