3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A{ public static function __callStatic($name,$args){ call_user_func_array(array(__CLASS_,$name),$args); } private static function test($args) { echo implode('/',$args); } } A::test(array(1,2,3));
based on Ym17D
Output for 7.2.0
Warning: Use of undefined constant __CLASS_ - assumed '__CLASS_' (this will throw an Error in a future version of PHP) in /in/XeLgN on line 5 Warning: call_user_func_array() expects parameter 1 to be a valid callback, class '__CLASS_' not found in /in/XeLgN on line 5
Output for 5.3.18 - 7.1.10
Notice: Use of undefined constant __CLASS_ - assumed '__CLASS_' in /in/XeLgN on line 5 Warning: call_user_func_array() expects parameter 1 to be a valid callback, class '__CLASS_' not found in /in/XeLgN on line 5