Hallo,
gibt es einen Performance unterschied zwischen den folgenden Varianten? Wie compiliert PHP die if Schleife generell? Kann mir jemand auf diesem Gebiet weiterhelfen?
Variante 1:
index.php
	
foobar.php
	
Variante 2:
index.php
	
foobar.php
	
							
						
					gibt es einen Performance unterschied zwischen den folgenden Varianten? Wie compiliert PHP die if Schleife generell? Kann mir jemand auf diesem Gebiet weiterhelfen?
Variante 1:
index.php
PHP Code:
	
	
if($foo){
include 'foobar.php';
} 
PHP Code:
	
	
<?PHP
//hier kommt ein langer quelltext
?>
Variante 2:
index.php
PHP Code:
	
	
include 'foobar.php'; 
PHP Code:
	
	
<?PHP
if($foo){
//hier kommt ein langer quelltext
}
 
          
 
							
						
Comment