3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public function f() { array_map( 'self::__p', array(array('a')) ); } protected static function __p($a) { return array_map('self::_p', $a); }; protected static function _p($a) { echo $a; return $a; } } C::f();
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected ';', expecting function (T_FUNCTION) in /in/Mk6RS on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /in/Mk6RS on line 12
Process exited with code 255.

preferences:
185.37 ms | 1395 KiB | 66 Q