3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function a($b) { return $b; } public function c($d) { if (is_callable($d)) { echo $d('Hi'); } } } $e = ['A', 'a']; $f = new A; $f->c($e);
Output for git.master_jit, git.master, rfc.property-hooks
Fatal error: Uncaught Error: Non-static method A::a() cannot be called statically in /in/78PgU:9 Stack trace: #0 /in/78PgU(17): A->c(Array) #1 {main} thrown in /in/78PgU on line 9
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.39 ms | 401 KiB | 8 Q