3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { static function foo() { echo __METHOD__.PHP_EOL;} } ['x', 'foo'](); [0 => 'x', 1 => 'foo'](); //Array callback has to contain indices 0 and 1 //[10 => 'x', 11 => 'foo'](); //Array callback must have exactly two elements //[10 => 'x', 11 => 'foo', 0 =>0, 1=>1](); // OK! [1 => 'foo', 0 => 'x']();
Output for git.master, git.master_jit
x::foo x::foo x::foo

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:
48.71 ms | 846 KiB | 4 Q