3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $v; public function __construct($v) { $this->v = $v; } } $a1 = new A(new DateTime()); $a2 = new A(new DateTime()); var_dump($a1 == $a2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eEgkI
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a1, !1 = $a2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $2      'A'
          1        NEW                                              $3      'DateTime'
          2        DO_FCALL                                      0          
          3        SEND_VAR_NO_REF_EX                                       $3
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   13     6        NEW                                              $7      'A'
          7        NEW                                              $8      'DateTime'
          8        DO_FCALL                                      0          
          9        SEND_VAR_NO_REF_EX                                       $8
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $7
   15    12        INIT_FCALL                                               'var_dump'
         13        IS_EQUAL                                         ~12     !0, !1
         14        SEND_VAL                                                 ~12
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eEgkI
function name:  __construct
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN_OBJ                                               'v'
          2        OP_DATA                                                  !0
    9     3      > RETURN                                                   null

End of function __construct

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.91 ms | 1386 KiB | 15 Q