3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(DateInterval::createFromDateString('next Monday')); $date = new DateTime(); //$date->modify(); $date->format("Y-m-d H:i:s"); print_r($date);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lpTWX
function name:  (null)
number of ops:  16
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_STATIC_METHOD_CALL                                  'DateInterval', 'createFromDateString'
          2        SEND_VAL                                                 'next+Monday'
          3        DO_FCALL                                      0  $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                                 
    4     6        NEW                                              $3      'DateTime'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $3
    6     9        INIT_METHOD_CALL                                         !0, 'format'
         10        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         11        DO_FCALL                                      0          
    7    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.82 ms | 1394 KiB | 15 Q