3v4l.org

run code in 300+ PHP versions simultaneously
<?php $base = new DateTime; $copy = clone $base; $copy->modify('+1 month'); echo $base->format('Y-m-d H:i:s') . "\n" . $copy->format('Y-m-d H:i:s');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p0cM7
function name:  (null)
number of ops:  18
compiled vars:  !0 = $base, !1 = $copy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        CLONE                                            ~5      !0
          4        ASSIGN                                                   !1, ~5
    6     5        INIT_METHOD_CALL                                         !1, 'modify'
          6        SEND_VAL_EX                                              '%2B1+month'
          7        DO_FCALL                                      0          
    8     8        INIT_METHOD_CALL                                         !0, 'format'
          9        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         10        DO_FCALL                                      0  $8      
         11        CONCAT                                           ~9      $8, '%0A'
         12        INIT_METHOD_CALL                                         !1, 'format'
         13        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         14        DO_FCALL                                      0  $10     
         15        CONCAT                                           ~11     ~9, $10
         16        ECHO                                                     ~11
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.51 ms | 1393 KiB | 13 Q