3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test1() {echo __FUNCTION__; } function test2() {echo __FUNCTION__; } $methods = ['test1', 'test2']; $methods[true]();
Output for 5.6.30, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.2.9
test2