3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class G { public function a($b) { return $b; } public function c($d) { if (is_callable($d)) { echo $d('Hi'); } } } $e = ['A', 'a']; $f = new G; $f->c($e);
based on 78PgU
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0alpha1