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,"\n"; echo $vo === $vo2,"\n";
based on NRn6S
Output for 4.3.0 - 4.4.9, 5.1.3 - 7.1.0
Output for 5.0.0 - 5.1.2
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/WdmDE on line 3 Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/WdmDE on line 4 Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/WdmDE on line 5 Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/WdmDE on line 8 Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/WdmDE on line 9 Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/WdmDE on line 10