3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.74 ms | 1385 KiB | 15 Q