run code in 200+ php & hhvm versions
Bugs & Features
<?php class somePhp4Crap { function somePhp4Crap() { // this is how we did constructors in php 4. note we have no visibility set because everything is public! } }
Output for 7.0.30 - 7.3.0alpha1
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; somePhp4Crap has a deprecated constructor in /in/Gp8cu on line 3
Output for 5.6.30, hhvm-3.18.5 - 3.22.0