3v4l.org

run code in 300+ PHP versions simultaneously
<?php include 'conf.php'; include 'phpScripts/genCode.php'; include 'phpScripts/SxGeo.php'; $SxGeo = new SxGeo('phpScripts/SxGeo.dat', SXGEO_BATCH | SXGEO_MEMORY); $ip = $_SERVER['REMOTE_ADDR']; $country = $SxGeo->getCountry($ip); if(isset($_COOKIE['sid']) && (isset($_COOKIE['ssid']))){ if(!isset($_COOKIE['substitutioncookie'])){header('Location: phpScripts/logincheck.php');} } if(!isset($_COOKIE['lang']) && (isset($_COOKIE['checkcookie']))){setcookie('lang', 1); header('Location: index.php');} if(isset($_COOKIE['lang'])){ if($_COOKIE['lang'] == 1){ include 'localizations/en_US.php'; }elseif($_COOKIE['lang'] == 2){ include 'localizations/ru_RU.php'; }elseif($_COOKIE['lang'] == 3){ include 'localizations/de_DE.php'; } } if(!isset($_COOKIE['checkcookie'])){ include 'localizations/en_US.php'; } if (isset($_POST['log_in'])) { $login_query = mysqli_query($link, "SELECT email, password, id, folder FROM users WHERE email='".mysqli_real_escape_string($link, $_POST['email'])."' LIMIT 1"); $login_result = mysqli_fetch_assoc($login_query); if ($login_result['password'] === md5(sha1(md5($_POST['password'])).sha1($_POST['password']))) { $_SESSION['user_id'] = $login_result['id']; $hash = md5(generateCode(10)); $id = $login_result['id']; $time = ""; $browser = user_browser($agent); $password = md5(sha1(md5($_POST['password'])).sha1($_POST['password'])); mysqli_query($link, "INSERT INTO sessions SET id='".$id."', browser='".$browser."', sid='".$hash."', country='".$country."'"); setcookie("sid", $hash, time() + 60 * 60 * 24 * 365); setcookie("ssid", $password, time() + 60 * 60 * 24 * 365); if ($login_result['folder'] == 0) { mkdir("images/photos/u".$data['id'].""); mysqli_query($link, "UPDATE users SET folder=1 WHERE email='" . $data['email'] . "'"); } header("Location: loginScript.php"); } else { $err = "<div class='card-panel card-in-card red' style='margin-bottom: 40px;'><center><h5 style=\"font-size: 22px; padding-left: 0px;\" class=\"light white-text text-darken-3 offset-l3\">".$l['incorrect']."</div>"; } } ?>

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)
7.3.10.0090.00616.23
7.3.00.0090.00616.34
7.2.130.0090.01216.73
7.2.120.0130.01016.39
7.2.110.0140.00316.74
7.2.100.0120.00616.71
7.2.90.0100.00316.45
7.2.80.0140.00316.55
7.2.70.0070.00716.77
7.2.60.0030.00816.71
7.2.50.0110.00316.38
7.2.40.0060.01116.62
7.2.30.0100.01016.48
7.2.20.0100.00716.71
7.2.10.0000.01616.36
7.2.00.0050.00717.96
7.1.250.0070.01115.49
7.1.200.0030.00615.58
7.1.100.0030.00717.96
7.1.70.0030.00616.88
7.1.60.0160.01019.59
7.1.50.0060.01016.84
7.1.00.0000.07722.37
7.0.200.0060.00316.58
7.0.100.0030.03719.95
7.0.90.0030.03719.87
7.0.80.0030.04320.15
7.0.70.0100.03020.04
7.0.60.0000.04320.05
7.0.50.0030.07320.45
7.0.40.0070.07720.18
7.0.30.0070.04020.05
7.0.20.0170.07720.11
7.0.10.0100.07319.92
7.0.00.0130.06720.18
5.6.280.0070.06321.12
5.6.250.0030.03720.75
5.6.240.0070.04020.65
5.6.230.0030.03320.63
5.6.220.0070.03320.63
5.6.210.0030.04320.63
5.6.200.0200.03321.05
5.6.190.0130.09021.09
5.6.180.0070.05021.05
5.6.170.0100.04021.16
5.6.160.0070.04321.08
5.6.150.0070.08321.15
5.6.140.0100.07021.02
5.6.130.0070.08321.12
5.6.120.0070.03721.05
5.6.110.0030.07321.09
5.6.100.0070.08321.18
5.6.90.0030.08721.08
5.6.80.0100.04720.41
5.6.70.0070.08320.40
5.6.60.0070.06720.43
5.6.50.0170.03320.43
5.6.40.0030.06720.48
5.6.30.0200.06320.43
5.6.20.0030.04720.38
5.6.10.0270.03320.33
5.6.00.0070.07320.38
5.5.380.0100.04020.37
5.5.370.0000.04320.43
5.5.360.0030.03320.38
5.5.350.0070.03320.39
5.5.340.0070.08320.77
5.5.330.0030.07720.65
5.5.320.0030.05720.84
5.5.310.0030.07720.85
5.5.300.0000.04020.94
5.5.290.0100.03720.77
5.5.280.0000.07320.66
5.5.270.0130.07720.77
5.5.260.0030.08720.93
5.5.250.0130.08020.71
5.5.240.0070.08020.23
5.5.230.0000.05020.28
5.5.220.0170.06720.24
5.5.210.0000.06020.30
5.5.200.0030.08720.13
5.5.190.0130.06320.29
5.5.180.0000.07020.18
5.5.160.0070.04720.05
5.5.150.0100.05320.25
5.5.140.0030.06720.30
5.5.130.0100.07020.12
5.5.120.0070.07720.19
5.5.110.0030.09020.12
5.5.100.0100.07720.12
5.5.90.0100.07320.11
5.5.80.0070.07320.13
5.5.70.0100.08320.18
5.5.60.0070.05720.07
5.5.50.0100.06020.05
5.5.40.0030.08020.17
5.5.30.0100.08320.10
5.5.20.0030.08019.93
5.5.10.0130.08020.05
5.5.00.0130.06720.02
5.4.450.0070.05719.37
5.4.440.0030.05719.30
5.4.430.0100.08019.43
5.4.420.0070.04019.23
5.4.410.0130.03718.99
5.4.400.0070.06719.11
5.4.390.0100.07019.04
5.4.380.0130.04718.82
5.4.370.0070.07719.05
5.4.360.0070.07019.07
5.4.350.0070.07319.24
5.4.340.0130.04719.05
5.4.320.0130.07019.11
5.4.310.0100.07319.06
5.4.300.0130.07318.98
5.4.290.0030.07319.04
5.4.280.0070.04019.03
5.4.270.0200.04319.04
5.4.260.0170.06319.09
5.4.250.0070.05318.96
5.4.240.0100.07019.14
5.4.230.0170.06319.23
5.4.220.0070.08019.12
5.4.210.0170.05719.09
5.4.200.0170.06019.09
5.4.190.0070.04718.90
5.4.180.0100.07318.94
5.4.170.0100.06718.83
5.4.160.0130.06718.80
5.4.150.0070.07318.80
5.4.140.0100.07316.31
5.4.130.0030.04016.33
5.4.120.0000.07716.02
5.4.110.0130.06716.22
5.4.100.0070.07316.22
5.4.90.0070.07316.24
5.4.80.0070.07316.22
5.4.70.0130.06716.32
5.4.60.0030.04316.20
5.4.50.0070.04716.30
5.4.40.0070.07316.45
5.4.30.0000.05316.33
5.4.20.0030.07316.32
5.4.10.0030.05016.19
5.4.00.0070.04015.66
5.3.290.0130.07014.56
5.3.280.0100.07314.61
5.3.270.0070.08014.63
5.3.260.0100.06714.63
5.3.250.0030.07714.60
5.3.240.0000.06014.64
5.3.230.0070.04014.62
5.3.220.0000.06714.59
5.3.210.0030.07714.55
5.3.200.0070.06714.61
5.3.190.0130.07314.54
5.3.180.0000.09014.58
5.3.170.0070.07014.43
5.3.160.0100.07314.59
5.3.150.0070.04314.46
5.3.140.0000.07714.45
5.3.130.0170.06714.54
5.3.120.0000.07714.57
5.3.110.0070.05314.44
5.3.100.0000.07014.07
5.3.90.0030.06013.89
5.3.80.0030.08013.91
5.3.70.0100.07014.01
5.3.60.0100.04014.02
5.3.50.0070.06313.84
5.3.40.0100.07013.89
5.3.30.0170.06313.90
5.3.20.0130.06313.63
5.3.10.0100.06713.67
5.3.00.0000.07713.54
5.2.170.0070.03711.32
5.2.160.0030.06011.32
5.2.150.0070.05711.32
5.2.140.0070.06011.32
5.2.130.0030.06711.32
5.2.120.0100.05311.32
5.2.110.0100.05711.32
5.2.100.0070.04011.32
5.2.90.0070.04311.32
5.2.80.0030.06011.32
5.2.70.0030.05011.32
5.2.60.0070.06311.32
5.2.50.0030.06011.32
5.2.40.0030.05311.32
5.2.30.0130.05711.32
5.2.20.0100.02311.32
5.2.10.0030.03011.32
5.2.00.0000.04011.32
5.1.60.0030.03011.32
5.1.50.0070.03011.32
5.1.40.0030.05311.32
5.1.30.0070.05011.32
5.1.20.0070.05011.32
5.1.10.0000.02311.32
5.1.00.0000.05311.32
5.0.50.0000.04311.32
5.0.40.0000.02711.32
5.0.30.0030.03311.32
5.0.20.0000.03011.32
5.0.10.0100.03711.32
5.0.00.0000.06311.32
4.4.90.0030.01711.32
4.4.80.0000.01711.32
4.4.70.0000.01711.32
4.4.60.0030.02711.32
4.4.50.0070.01711.32
4.4.40.0070.03311.32
4.4.30.0000.04011.32
4.4.20.0000.03011.32
4.4.10.0030.03011.32
4.4.00.0000.05711.32
4.3.110.0100.01311.32
4.3.100.0030.01711.32
4.3.90.0030.03011.32
4.3.80.0000.03311.32
4.3.70.0070.03311.32
4.3.60.0100.02711.32
4.3.50.0070.02311.32
4.3.40.0000.02711.32
4.3.30.0030.02011.32
4.3.20.0030.01711.32
4.3.10.0000.01711.32
4.3.00.0030.01711.32

preferences:
40.99 ms | 400 KiB | 5 Q