3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(~0); class a { function a() { echo "CONSTRUCTOR CALLED\r\n"; } function b($var) { return $var . 'x'; } } print_r(array_map(array('a', 'b'), array('a', 'b')));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: array_map(): Argument #1 ($callback) must be a valid callback or null, non-static method a::b() cannot be called statically in /in/tjOhK:15 Stack trace: #0 /in/tjOhK(15): array_map(Array, Array) #1 {main} thrown in /in/tjOhK on line 15
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:
38.92 ms | 401 KiB | 8 Q