3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.1 ms | 1394 KiB | 15 Q