3v4l.org

run code in 300+ PHP versions simultaneously
<?php const A = 'b::c'; class B { static function C() { echo __METHOD__; } } //valid call to \B::C() constant('A')(); // class A not found //new A; // Call to undefined function A() A(); // parse error, this is not supported //{A}();
Output for git.master_jit, git.master
B::C Fatal error: Uncaught Error: Call to undefined function A() in /in/c16hv:17 Stack trace: #0 {main} thrown in /in/c16hv on line 17
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:
45.91 ms | 852 KiB | 4 Q