3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('2016-03-30 15:20:00'); $unixtime = strtotime($date->format('Y-m-d H:i:s'), 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/9OOj9
function name:  (null)
number of ops:  22
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        INIT_METHOD_CALL                                         !0, 'format'
          6        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
          7        DO_FCALL                                      0  $6      
          8        SEND_VAR                                                 $6
          9        INIT_FCALL                                               'strtotime'
         10        SEND_VAL                                                 'next+Monday'
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !1, $8
    5    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $10     
         19        ASSIGN                                           ~11     !2, $10
         20        ECHO                                                     ~11
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.63 ms | 1386 KiB | 17 Q