3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('2016-03-30 15:20:00'); $unixtime = strtotime($date, strtotime("next Monday")); echo $time = date('Y-m-d H:i:s',$unixtime);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QBWJa
function name:  (null)
number of ops:  19
compiled vars:  !0 = $date, !1 = $unixtime, !2 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DateTime'
          1        SEND_VAL_EX                                              '2016-03-30+15%3A20%3A00'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAR                                                 !0
          6        INIT_FCALL                                               'strtotime'
          7        SEND_VAL                                                 'next+Monday'
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !1, $7
    5    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $9      
         16        ASSIGN                                           ~10     !2, $9
         17        ECHO                                                     ~10
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.84 ms | 1398 KiB | 17 Q