3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new PDO("mysql:host={$connect[0]}; dbname={$database}", $connect[1], $connect[2]); // Log each login attempt $ipAddress = $_SERVER['REMOTE_ADDR']; $logQuery = "INSERT INTO Logs.Logins (userName, ipAddress) VALUES (:userName,:ipAddress)"; $st = $db->prepare($logQuery); error here => $st->execute(['userName' =>$myName,'ipAddress'=>$ipAddress]); ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.250.0200.04018.99
5.4.240.0100.06018.79
5.4.230.0030.07019.02
5.4.220.0100.05718.92
5.4.210.0100.07718.79
5.4.200.0070.05319.00
5.4.190.0170.05318.64
5.4.180.0170.04018.74
5.4.170.0030.05718.90
5.4.160.0070.05318.75
5.4.150.0100.07018.99
5.4.140.0170.04016.39
5.4.130.0030.05016.38
5.4.120.0130.05716.54
5.4.110.0100.04716.33
5.4.100.0070.06316.42
5.4.90.0000.05316.38
5.4.80.0030.05016.64
5.4.70.0070.04716.39
5.4.60.0000.05316.53
5.4.50.0100.04316.36
5.4.40.0100.04716.44
5.4.30.0070.04716.45
5.4.20.0130.04716.38
5.4.10.0070.04716.48
5.4.00.0070.05015.85
5.3.280.0100.05314.45
5.3.270.0070.05314.61
5.3.260.0000.05714.48
5.3.250.0070.05014.66
5.3.240.0070.05314.48
5.3.230.0100.04714.75
5.3.220.0070.05014.62
5.3.210.0030.05714.73
5.3.200.0030.05314.56
5.3.190.0070.05014.45
5.3.180.0100.07014.47
5.3.170.0070.05014.47
5.3.160.0100.04714.58
5.3.150.0000.06014.58
5.3.140.0030.05314.55
5.3.130.0070.05314.55
5.3.120.0070.05014.55
5.3.110.0030.06314.41
5.3.100.0070.06713.91
5.3.90.0130.04013.79
5.3.80.0030.05014.04
5.3.70.0100.05013.85
5.3.60.0030.05314.02
5.3.50.0100.05013.81
5.3.40.0070.05014.05
5.3.30.0070.05013.93
5.3.20.0100.04713.61
5.3.10.0070.05013.64
5.3.00.0030.07013.80

preferences:
138.74 ms | 1394 KiB | 7 Q