3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class party { function __construct() { echo 'party'; } function party() { echo 'party2'; } } $party = new party(); $party2 = $party;
Output for 5.2.14 - 5.2.17, 5.3.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
party
Output for 5.0.0 - 5.2.13, 5.3.0 - 5.3.2
Strict Standards: Redefining already defined constructor for class party in /in/0F81m on line 8 party
Output for 4.3.0 - 4.4.9
party2