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("P$i.class.php", $f); } function __autoload($class_name) { require_once $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);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in /in/vTlgB on line 13
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.74 ms | 401 KiB | 8 Q