3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a{ function b($aaaaaaaa, $aaaaaaaa) { $params = func_get_args(); }} $c = new a;$c->b('waa?', 'meukee!'); $reflectionClass = new ReflectionClass($c);$params = $reflectionClass->getMethod('b')->getParameters(); var_dump($params[0], $params[1]); ?>
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.3.6 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
object(ReflectionParameter)#4 (1) { ["name"]=> string(8) "aaaaaaaa" } object(ReflectionParameter)#5 (1) { ["name"]=> string(8) "aaaaaaaa" }
Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.5
object(ReflectionParameter)#4 (1) { ["name"]=> string(8) "aaaaaaaa" } object(ReflectionParameter)#5 (1) { ["name"]=> string(8) "" }
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/bJo3G on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/bJo3G on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/bJo3G on line 4
Process exited with code 255.

preferences:
228.34 ms | 1399 KiB | 163 Q