3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new \DateTime(); $olderDt = (clone $dt)->sub(new \DateInterval('PT1D')); print_r($dt); print_r($olderDt);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HN49J
function name:  (null)
number of ops:  18
compiled vars:  !0 = $dt, !1 = $olderDt
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        INIT_METHOD_CALL                                         ~5, 'sub'
          5        NEW                                              $6      'DateInterval'
          6        SEND_VAL_EX                                              'PT1D'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $6
          9        DO_FCALL                                      0  $8      
         10        ASSIGN                                                   !1, $8
    5    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.59 ms | 1394 KiB | 15 Q