3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class MeuTeste{ private function __construct(){ echo 'come├žou'; } } var_dump(new MeuTeste());
based on JldYh
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to private MeuTeste::__construct() from invalid context in /in/itqZa:9 Stack trace: #0 {main} thrown in /in/itqZa on line 9
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to private MeuTeste::__construct() from invalid context in /in/itqZa on line 9
Process exited with code 255.