3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime; $newDate = $date->modify('+1 day'); echo $date->modify('+1 day')->format('d/m/Y').PHP_EOL; echo $newDate->format('d/m/Y').PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EOD0a
function name:  (null)
number of ops:  21
compiled vars:  !0 = $date, !1 = $newDate
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        INIT_METHOD_CALL                                         !0, 'modify'
          4        SEND_VAL_EX                                              '%2B1+day'
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !1, $5
    6     7        INIT_METHOD_CALL                                         !0, 'modify'
          8        SEND_VAL_EX                                              '%2B1+day'
          9        DO_FCALL                                      0  $7      
         10        INIT_METHOD_CALL                                         $7, 'format'
         11        SEND_VAL_EX                                              'd%2Fm%2FY'
         12        DO_FCALL                                      0  $8      
         13        CONCAT                                           ~9      $8, '%0A'
         14        ECHO                                                     ~9
    7    15        INIT_METHOD_CALL                                         !1, 'format'
         16        SEND_VAL_EX                                              'd%2Fm%2FY'
         17        DO_FCALL                                      0  $10     
         18        CONCAT                                           ~11     $10, '%0A'
         19        ECHO                                                     ~11
    8    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.52 ms | 1448 KiB | 13 Q