3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { function __invoke($arg) { $this->undefined; } }; (new X)();
Output for rfc.property-hooks, git.master, git.master_jit
Fatal error: Uncaught ArgumentCountError: Too few arguments to function X::__invoke(), 0 passed in /in/pYZoo on line 9 and exactly 1 expected in /in/pYZoo:4 Stack trace: #0 /in/pYZoo(9): X->__invoke() #1 {main} thrown in /in/pYZoo on line 4
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:
46.43 ms | 2689 KiB | 4 Q