run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { public function test(){echo 'coin';} }; $part1 = 'Te'; $i = new $part1.'st'(); $i->test();
Output for 7.1.0RC3
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Test has a deprecated constructor in /in/VCqS6 on line 2 Fatal error: Uncaught Error: Class 'Te' not found in /in/VCqS6:6 Stack trace: #0 {main} thrown in /in/VCqS6 on line 6
Process exited with code 255.