3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace Foo; class Bar { public function Bar() { echo '3'; // treated as constructor in PHP 5.3.0-5.3.2 // treated as regular method as of PHP 5.3.3 } } new (Bar())->Bar(); ?>
Output for 5.3.0 - 5.4.22
Parse error: syntax error, unexpected '(' in /in/eGkcT on line 16
Process exited with code 255.