PHP unter Windows mit XAMPP, das 100-mal zu langsam ausgeführt wird

PHP läuft auf meinem Windows-Desktop so langsam, dass phpMyAdmin Minuten benötigt, um eine Datenbank zu öffnen. Hier ist ein Vergleich der Zeit, um ein einfaches PHP-Testprogramm auszuführen:

Windows 8.1-Computer mit XAMPP: 3597 msiPage Shared Hosting: 65 ms A2Hosting Shared Hosting: 26 ms

Hier ist das Testprogramm ...

<?php
$rStartTime = microtime(true);
$countTo = 100000;
$a = 0;
//$countTo = $countTo * 100;
for ($x = 0; $x <= $countTo; $x++) {
    $a = sqrt(pow($x, 2));
}
$rMs = floor((microtime(true) - $rStartTime) * 1000);
echo 'timer done, countTo=' . $a . ' ms=' . $rMs;

Das Testprogramm wird ohne Debugging ausgeführt, indem Sie "@" eingebehttp: //localhost/timer.ph "in Firefox.

Die lokale Maschine ist normalerweise sehr schnell. Es rennt…

Windows 8.XAMPP 1.8.3 (Bedienfeld v3.2.1)Apache 2.4.4 (neueste Version 2.4.20)PHP 5.5.3Antimalware = Windows DefenderIDE = PHPStorm 10.0.2

Warum läuft PHP so langsam?

Antworten auf die Frage(16)

Ihre Antwort auf die Frage