3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function sayHello(){ echo "Hello"; } } $res = ["A", "sayHello"]; $res = $res();
based on a9k8G
Output for 7.0.0 - 7.2.0
Deprecated: Non-static method A::sayHello() should not be called statically in /in/qREsH on line 8 Hello
Output for 5.4.2 - 5.6.21
Strict Standards: Non-static method A::sayHello() should not be called statically in /in/qREsH on line 8 Hello
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/qREsH on line 7
Process exited with code 255.