3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function isFoo() { return $this instanceof Foo; } } class Bar { public function doSomething() { return Foo::isFoo(); } } $bar = new Bar; var_dump($bar->doSomething());
Output for rfc.property-hooks, git.master, git.master_jit
Fatal error: Uncaught Error: Non-static method Foo::isFoo() cannot be called statically in /in/5h16k:14 Stack trace: #0 /in/5h16k(19): Bar->doSomething() #1 {main} thrown in /in/5h16k on line 14
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:
52.31 ms | 2320 KiB | 4 Q