3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public static function method() { echo 'called'; } } $c = [Test::class, 'method']; if (is_callable($c)) { $c(); }
based on fsl6Q
Output for 5.5.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.3.0rc4
called
Output for hhvm-3.11.1

Process exited with code 137.