3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class ValueObj { var $fname="May"; var $mname="June"; var $lname="July"; } class ValueObj2 { var $fname="May"; var $mname="June"; var $lname="July"; } $vo = new ValueObj(); $vo2 = new ValueObj2(); echo $vo == $vo2?'true':'false',"\n"; echo $vo === $vo2?'true':'false',"\n";
based on ksbpT
Output for 4.3.0 - 4.4.9, 5.1.3 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
false false
Output for hhvm-3.10.0

Process exited with code 137.
Output for 5.0.0 - 5.1.2
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/XcIhZ on line 3 Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/XcIhZ on line 4 Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/XcIhZ on line 5 Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/XcIhZ on line 8 Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/XcIhZ on line 9 Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/XcIhZ on line 10 false false