3v4l.org

run code in 300+ PHP versions simultaneously
<?php $last_message_date = new \DateTime(); $from_date = clone $last_message_date; $to_date = clone $last_message_date; var_dump($from_date, $to_date);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EgNDa
function name:  (null)
number of ops:  12
compiled vars:  !0 = $last_message_date, !1 = $from_date, !2 = $to_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        CLONE                                            ~6      !0
          4        ASSIGN                                                   !1, ~6
    5     5        CLONE                                            ~8      !0
          6        ASSIGN                                                   !2, ~8
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.86 ms | 1394 KiB | 15 Q