3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class FooBar { const FOO = 3; public function __construct() { var_dump(static::FOO); } } class FooBaz { const FOO = 4; } new FooBaz;
based on m8ZND