3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // provides no output namespace testa; class testClass1 { public function __construct (){ echo "hello1\n"; } } class testClass2 { public function testClass2 (){ echo "hello2\n"; } } $test1 = new \testa\testClass1(); $test2 = new \testa\testClass2(); ?>
based on tSoBD
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
hello1