3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function bar(); } trait Bar { protected function bar() { } } class ConcreteFoo implements Foo { use Bar; } $foo = new ConcreteFoo(); var_dump($foo->bar());
Output for rfc.property-hooks, git.master, git.master_jit
Fatal error: Access level to ConcreteFoo::bar() must be public (as in class Foo) in /in/0GUWQ on line 10
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
60.57 ms | 2070 KiB | 4 Q