3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A{ function __callStatic($name,$args){ call_user_func_array(array(self,$name),$args); } private static function test($args) { echo implode('/',$args); } } A::test(array(1,2,3));
Output for 7.2.0
Warning: The magic method __callStatic() must have public visibility and be static in /in/D4bBR on line 4 Warning: Use of undefined constant self - assumed 'self' (this will throw an Error in a future version of PHP) in /in/D4bBR on line 5 1/2/3
Output for 5.3.18 - 7.1.10
Warning: The magic method __callStatic() must have public visibility and be static in /in/D4bBR on line 4 Notice: Use of undefined constant self - assumed 'self' in /in/D4bBR on line 5 1/2/3