3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new DateTimeImmutable(); $y = new DateTimeImmutable(); $y = $y->add(new DateInterval("P1D")); var_dump($x, $y);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AudHt
function name:  (null)
number of ops:  18
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTimeImmutable'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        NEW                                              $5      'DateTimeImmutable'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
    5     6        INIT_METHOD_CALL                                         !1, 'add'
          7        NEW                                              $8      'DateInterval'
          8        SEND_VAL_EX                                              'P1D'
          9        DO_FCALL                                      0          
         10        SEND_VAR_NO_REF_EX                                       $8
         11        DO_FCALL                                      0  $10     
         12        ASSIGN                                                   !1, $10
    8    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.78 ms | 1394 KiB | 15 Q