3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { function __construct() { function test1() { echo 'hii- test1'; } $this->autoload_function(); } function autoload_function() { $my_array = array( "test1" ); foreach ($my_array as $my_function) { call_user_func($my_function); } } } $var = new MyClass(); ?>

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
211.48 ms | 1862 KiB | 8 Q