3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = new DateTime('2018/01/01 00:00:00'); $b = new DateTime('2018/01/01 00:00:00'); $b->extraparam = 1; var_dump($a==$b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N6gnH
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'DateTime'
          1        SEND_VAL_EX                                                  '2018%2F01%2F01+00%3A00%3A00'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $2
    4     4        NEW                                                  $5      'DateTime'
          5        SEND_VAL_EX                                                  '2018%2F01%2F01+00%3A00%3A00'
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !1, $5
    5     8        ASSIGN_OBJ                                                   !1, 'extraparam'
          9        OP_DATA                                                      1
    7    10        INIT_FCALL                                                   'var_dump'
         11        IS_EQUAL                                             ~9      !0, !1
         12        SEND_VAL                                                     ~9
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.1 ms | 2605 KiB | 14 Q