3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limit = 50; for($i = 1; $i <= $limit; $i++){ $f = "<?php echo \"P$i loaded\\n\"; class P$i{ public static function execute_me(){ return \"P$i executed\\n\"; } }"; file_put_contents("/tmp/P$i.class.php", $f); } function __autoload($class_name) { require_once '/tmp/' . $class_name . '.class.php'; } function callback($limit, $i = 1){ //class_exists("P$i"); echo call_user_func_array(array("P$i", 'execute_me'), array()); if($i < $limit) callback($limit, $i+1); } callback($limit);

This is an error 404

There are `0` results


preferences:
147.86 ms | 1399 KiB | 7 Q