Railsbin – The vulnerable pastebin service!

User:

Title: Worlds first BRANCHLESS PHP Autoloader

Content:

spl_autoload_register(function(string $classname) : void
{
	# Worlds first BRANCHLESS PHP Autoloader 
	static $call = [
		function($name){ # include
			include(GDO_PATH . str_replace('\\', '/', $name) . '.php');
			global $GDT_LOADED; # #PP#delete# performance metrics
			$GDT_LOADED++;      # #PP#delete#
		},
		function() { }, # ignore
	];
	$GDO = ((($name[0]<<=24)|$name[3])^0x4800005C); # :)
	$call[$GDO / $GDO]($name); # i am calling you names now :)
	
	# ORIGINAL autoloader
	if ($name[0] === 'G' && $name[3] === '\\') # 1 line for an "if"
	{   # 2 lines for path + include
		include $name; # 2 lines perf, removed by PreProcessor
		global $GDT_LOADED; # #PP#delete#
		$GDT_LOADED++;      # #PP#delete#
	}
});

Edit | Back