3v4l.org

run code in 300+ PHP versions simultaneously
<?php class boo { protected $a; public function __construct($a) { $this->a = $a; } } $x = new boo("X"); $y = new boo("Y"); $z = $y; var_export( $x == $y ); echo "\n"; var_export( $x == $z ); echo "\n"; var_export( $y == $z ); echo "\n"; var_export( $x === $y ); echo "\n"; var_export( $x === $z ); echo "\n"; var_export( $y === $z );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CWXTP
function name:  (null)
number of ops:  39
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $3      'boo'
          1        SEND_VAL_EX                                              'X'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
   11     4        NEW                                              $6      'boo'
          5        SEND_VAL_EX                                              'Y'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
   12     8        ASSIGN                                                   !2, !1
   14     9        INIT_FCALL                                               'var_export'
         10        IS_EQUAL                                         ~10     !0, !1
         11        SEND_VAL                                                 ~10
         12        DO_ICALL                                                 
   15    13        ECHO                                                     '%0A'
   17    14        INIT_FCALL                                               'var_export'
         15        IS_EQUAL                                         ~12     !0, !2
         16        SEND_VAL                                                 ~12
         17        DO_ICALL                                                 
   18    18        ECHO                                                     '%0A'
   19    19        INIT_FCALL                                               'var_export'
         20        IS_EQUAL                                         ~14     !1, !2
         21        SEND_VAL                                                 ~14
         22        DO_ICALL                                                 
   20    23        ECHO                                                     '%0A'
   22    24        INIT_FCALL                                               'var_export'
         25        IS_IDENTICAL                                     ~16     !0, !1
         26        SEND_VAL                                                 ~16
         27        DO_ICALL                                                 
   23    28        ECHO                                                     '%0A'
   25    29        INIT_FCALL                                               'var_export'
         30        IS_IDENTICAL                                     ~18     !0, !2
         31        SEND_VAL                                                 ~18
         32        DO_ICALL                                                 
   26    33        ECHO                                                     '%0A'
   28    34        INIT_FCALL                                               'var_export'
         35        IS_IDENTICAL                                     ~20     !1, !2
         36        SEND_VAL                                                 ~20
         37        DO_ICALL                                                 
         38      > RETURN                                                   1

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

End of function __construct

End of class boo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.64 ms | 1405 KiB | 15 Q