3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('display_errors', true); error_reporting(E_ALL); class name { public static function methodname() { var_dump('methodname called'); } } $array = array('key' => 'methodname'); name::$array['key']();
based on T570G
Output for 7.0.0 - 7.3.0rc4
Fatal error: Uncaught Error: Access to undeclared static property: name::$array in /in/OdFWt:12 Stack trace: #0 {main} thrown in /in/OdFWt on line 12
Process exited with code 255.
Output for 5.3.20 - 5.6.21
string(17) "methodname called"