3v4l.org

run code in 300+ PHP versions simultaneously
<?php $connect = mysql_connect("sql305.byetcluster.com", "freer_13053798","42024202") or die("Could not connect: " . mysql_error()); mysql_select_db('freer_13053798_reg'); if (isset ($_POST[submit])) { $username= $_POST['username']; $login= $_POST['login']; $password= $_POST['password']; $r_password= $_POST['r_password']; if ($password == $r_password){ $password = md5($paswword); $query = mysql_query("INSERT INTO reg VALUES('','$username','$login','$password')") or die(mysql_error()); } else { die("paroli doljni sovpadat"); } } if (isset ($_POST['enter'])) { $e_login = $_POST['e_login']; $e_password = md5($_POST['e_password']); $query= mysql_query ("SELECT * FROM reg WHERE login = '$e_login'"); $user_data[] = mysql_fetch_array($query); if ($user_data['password']==$e_password) { echo 'ok'; } else { echo 'ne ok'; } } ?> <form method="post" action="reg3.php"> <input type="text" name="username" placeholder=" | Username" required /><br> <input type="text" name="login" placeholder=" | Login" required /><br> <input type="password" name="password" placeholder=" | Password" required /><br> <input type="password" name="r_password" placeholder=" | Opiat password" required /><br> <input type="submit" name="submit" value="submit" /> </form> <form method="post" action="reg3.php"> <input type="text" name="e_login" placeholder=" | Login" required /><br> <input type="password" name="e_password" placeholder=" | Password" required /><br> <input type="submit" name="enter" value="enter" /> </form>

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)
8.3.60.0090.00616.63
8.3.50.0070.00916.62
8.3.40.0100.00618.88
8.3.30.0070.00718.84
8.3.20.0040.00418.78
8.3.10.0040.00418.75
8.3.00.0090.00017.50
8.2.180.0060.00916.75
8.2.170.0170.00322.96
8.2.160.0080.00818.82
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00421.00
8.2.110.0070.00321.18
8.2.100.0110.00017.71
8.2.90.0000.00819.04
8.2.80.0040.00717.97
8.2.70.0040.00417.63
8.2.60.0000.00818.03
8.2.50.0080.00017.80
8.2.40.0050.00319.35
8.2.30.0060.00317.66
8.2.20.0050.00517.54
8.2.10.0070.00017.61
8.2.00.0000.00917.61
8.1.280.0090.00925.92
8.1.270.0050.00323.99
8.1.260.0070.00726.35
8.1.250.0000.00728.09
8.1.240.0050.00521.35
8.1.230.0030.00717.83
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0060.00317.23
8.1.180.0040.00422.16
8.1.170.0050.00317.62
8.1.160.0070.00018.96
8.1.150.0040.00418.61
8.1.140.0040.00417.33
8.1.130.0030.00317.34
8.1.120.0040.00717.32
8.1.110.0040.00417.41
8.1.100.0030.00517.31
8.1.90.0040.00417.36
8.1.80.0000.00717.37
8.1.70.0030.00517.30
8.1.60.0080.00017.51
8.1.50.0050.00317.29
8.1.40.0030.00717.55
8.1.30.0040.00417.64
8.1.20.0060.00317.55
8.1.10.0000.00817.59
8.1.00.0000.00817.49
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00318.63
8.0.270.0030.00517.31
8.0.260.0030.00316.87
8.0.250.0040.00416.99
8.0.240.0000.00717.01
8.0.230.0000.00817.03
8.0.220.0040.00416.93
8.0.210.0040.00416.93
8.0.200.0000.00716.89
8.0.190.0030.00517.07
8.0.180.0030.00516.95
8.0.170.0030.00616.87
8.0.160.0050.00316.88
8.0.150.0000.00716.81
8.0.140.0090.00216.79
8.0.130.0030.00313.33
8.0.120.0000.00916.91
8.0.110.0070.00016.88
8.0.100.0040.00416.93
8.0.90.0070.00016.79
8.0.80.0120.00316.95
8.0.70.0000.00716.96
8.0.60.0040.00416.82
8.0.50.0030.00616.82
8.0.30.0120.00617.23
8.0.20.0110.01017.27
8.0.10.0040.00416.82
8.0.00.0110.00916.80
7.4.330.0000.00512.89
7.4.320.0060.00016.54
7.4.300.0060.00016.45
7.4.290.0070.00016.56
7.4.280.0070.00016.51
7.4.270.0030.00316.55
7.4.260.0050.00013.32
7.4.250.0000.00816.62
7.4.240.0000.00716.52
7.4.230.0040.00416.59
7.4.220.0060.01216.39
7.4.210.0060.01016.54
7.4.200.0000.00716.40
7.4.190.0040.00416.64
7.4.160.0130.00316.38
7.4.150.0070.01416.48
7.4.140.0080.01517.86
7.4.130.0100.01016.39
7.4.120.0120.00916.32
7.4.110.0180.00616.63
7.4.100.0140.00316.52
7.4.90.0100.00716.57
7.4.80.0130.00516.40
7.4.70.0060.01016.51
7.4.60.0060.00916.40
7.4.50.0000.00516.63
7.4.40.0120.00016.43
7.4.30.0150.00616.45
7.4.10.0070.01314.77
7.4.00.0090.00814.99
7.3.330.0000.00712.97
7.3.320.0000.00813.11
7.3.310.0040.00416.38
7.3.300.0030.00316.33
7.3.290.0080.00816.28
7.3.280.0070.00716.30
7.3.270.0030.01316.53
7.3.260.0080.00816.33
7.3.240.0090.00916.32
7.3.230.0110.00516.23
7.3.210.0040.01416.43
7.3.200.0070.01416.27
7.3.190.0070.01016.25
7.3.180.0060.01216.39
7.3.170.0040.01216.25
7.3.160.0100.01016.41
7.3.130.0110.00214.70
7.3.120.0040.01314.81
7.3.110.0090.00814.84
7.3.100.0050.00814.73
7.3.90.0070.00914.96
7.3.80.0090.00514.74
7.3.70.0090.00714.81
7.3.60.0050.01014.75
7.3.50.0070.00814.70
7.3.40.0070.00614.79
7.3.30.0050.00814.70
7.3.20.0030.00816.57
7.3.10.0050.00716.48
7.3.00.0070.00716.47
7.2.330.0030.01316.34
7.2.320.0090.01316.23
7.2.310.0070.01016.50
7.2.300.0140.00716.59
7.2.290.0070.01016.64
7.2.260.0080.01114.99
7.2.250.0090.00814.89
7.2.240.0100.00715.11
7.2.230.0030.01014.99
7.2.220.0060.01114.95
7.2.210.0030.01114.99
7.2.200.0040.00914.84
7.2.190.0100.00314.86
7.2.180.0050.00814.87
7.2.170.0070.00614.84
7.2.160.0030.00614.85
7.2.150.0030.00916.88
7.2.140.0070.01016.59
7.2.130.0050.01116.89
7.2.120.0070.00716.67
7.2.110.0070.00516.64
7.2.100.0070.00716.84
7.2.90.0050.00816.84
7.2.80.0070.00416.78
7.2.70.0050.00816.75
7.2.60.0400.00616.13
7.2.50.0090.00516.75
7.2.40.0100.00516.78
7.2.30.0030.00916.67
7.2.20.0070.00816.73
7.2.10.0060.00716.78
7.2.00.0060.00917.55
7.1.330.0070.00715.62
7.1.320.0100.00415.76
7.1.310.0030.01015.60
7.1.300.0070.00615.66
7.1.290.0040.00815.57
7.1.280.0050.00615.57
7.1.270.0040.00815.51
7.1.260.0030.00815.61
7.1.250.0030.00615.59
7.1.240.0090.00615.67
7.1.230.0000.01215.75
7.1.220.0110.00315.45
7.1.210.0040.00815.67
7.1.200.0050.00815.54
7.1.190.0030.01015.53
7.1.180.0050.00515.61
7.1.170.0030.01315.40
7.1.160.0130.00315.64
7.1.150.0070.00715.34
7.1.140.0030.00715.64
7.1.130.0050.00515.64
7.1.120.0030.00615.34
7.1.110.0000.01215.80
7.1.100.0080.00816.96
7.1.90.0030.00615.66
7.1.80.0050.00515.59
7.1.70.0050.00416.25
7.1.60.0090.01117.44
7.1.50.0090.00916.15
7.1.40.0100.00715.36
7.1.30.0000.01115.46
7.1.20.0040.00915.57
7.1.10.0070.00715.59
7.1.00.0030.04418.98
7.0.330.0060.00615.12
7.0.320.0120.00015.45
7.0.310.0040.01115.36
7.0.300.0030.01214.97
7.0.290.0060.00815.50
7.0.280.0110.00015.15
7.0.270.0000.01315.22
7.0.260.0040.01115.09
7.0.250.0060.00615.45
7.0.240.0070.00415.48
7.0.230.0000.00915.48
7.0.220.0070.00415.29
7.0.210.0090.00015.25
7.0.200.0040.00716.04
7.0.190.0100.00615.37
7.0.180.0060.00615.49
7.0.170.0030.01315.27
7.0.160.0040.00815.09
7.0.150.0030.01415.39
7.0.140.0030.04518.46
7.0.130.0070.00415.47
7.0.120.0060.03818.59
7.0.110.0100.00315.36
7.0.100.0040.00815.33
7.0.90.0040.01115.46
7.0.80.0000.01215.35
7.0.70.0040.01215.42
7.0.60.0070.03317.62
7.0.50.0050.03816.65
7.0.40.0090.03716.74
7.0.30.0230.03616.72
7.0.20.0230.03816.71
7.0.10.0080.02916.69
7.0.00.0030.04316.70
5.6.400.0030.01214.21
5.6.390.0080.00614.13
5.6.380.0060.00613.80
5.6.370.0060.00914.04
5.6.360.0000.01613.67
5.6.350.0030.00914.10
5.6.340.0030.01014.25
5.6.330.0080.00814.46
5.6.320.0030.00914.33
5.6.310.0040.01113.93
5.6.300.0080.00814.09
5.6.290.0040.01114.19
5.6.280.0080.03617.68
5.6.270.0040.01114.30
5.6.260.0040.01014.04
5.6.250.0040.01114.30
5.6.240.0000.01314.05
5.6.230.0060.00614.35
5.6.220.0070.00714.36
5.6.210.0050.02917.57
5.6.200.0030.02816.13
5.6.190.0110.04717.28
5.6.180.0150.04417.28
5.6.170.0120.02917.28
5.6.160.0090.04217.35
5.6.150.0100.04016.31
5.6.140.0070.04516.15
5.6.130.0050.04316.17
5.6.120.0100.02217.58
5.6.110.0030.02717.49
5.6.100.0050.04917.63
5.6.90.0060.04317.52
5.6.80.0020.04817.26
5.6.70.0080.03217.39
5.6.60.0080.00413.98
5.6.50.0080.00614.13
5.6.40.0090.00314.16
5.6.30.0070.01113.96
5.6.20.0030.01014.32
5.6.10.0030.01314.08
5.6.00.0060.00914.08
5.5.380.0040.00814.02
5.5.370.0100.00314.09
5.5.360.0070.01014.02
5.5.350.0140.04317.19
5.5.340.0080.04316.04
5.5.330.0080.04517.27
5.5.320.0070.05317.22
5.5.310.0200.04317.05
5.5.300.0050.03315.84
5.5.290.0020.02715.84
5.5.280.0040.04217.48
5.5.270.0030.02417.33
5.5.260.0100.03817.21
5.5.250.0070.04017.27
5.5.240.0110.03016.97
5.5.230.0000.00913.55
5.5.220.0040.00413.73
5.5.210.0070.01013.60
5.5.200.0060.00613.80
5.5.190.0070.00413.95
5.5.180.0070.00713.86
5.5.170.0070.00713.72
5.5.160.0070.00713.62
5.5.150.0100.00313.91
5.5.140.0070.00714.17
5.5.130.0000.01013.89
5.5.120.0070.00714.07
5.5.110.0030.00613.44
5.5.100.0060.00613.83
5.5.90.0040.01214.00
5.5.80.0060.00913.74
5.5.70.0000.01713.88
5.5.60.0040.01114.08
5.5.50.0060.00613.77
5.5.40.0030.01013.70
5.5.30.0140.00013.80
5.5.20.0000.01813.91
5.5.10.0060.00613.70
5.5.00.0000.01013.83
5.4.450.0170.02515.00
5.4.440.0250.01715.22
5.4.430.0450.02415.00
5.4.420.0360.02115.04
5.4.410.0370.02114.98
5.4.400.0130.02314.87
5.4.390.0260.02614.86
5.4.380.0200.02214.81
5.4.370.0400.02014.86
5.4.360.0320.02214.86
5.4.350.0170.02414.62
5.4.340.0230.02314.73
5.4.330.0040.00710.61
5.4.320.0090.02514.65
5.4.310.0430.02714.72
5.4.300.0380.02214.95
5.4.290.0290.02214.90
5.4.280.0380.02315.04
5.4.270.0430.02014.88
5.4.260.0330.02514.74
5.4.250.0330.02814.87
5.4.240.0120.02214.88
5.4.230.0420.01714.68
5.4.220.0150.03214.77
5.4.210.0250.02414.89
5.4.200.0260.02114.78
5.4.190.0330.02214.69
5.4.180.0210.03014.73
5.4.170.0240.02014.90
5.4.160.0300.02614.75
5.4.150.0110.02814.75
5.4.140.0170.02513.55
5.4.130.0400.01813.44
5.4.120.0330.02213.54
5.4.110.0470.01813.35
5.4.100.0410.01813.53
5.4.90.0420.01713.47
5.4.80.0420.02213.51
5.4.70.0200.02313.60
5.4.60.0300.02313.53
5.4.50.0280.04313.45
5.4.40.0150.02013.54
5.4.30.0470.01813.46
5.4.20.0250.02413.56
5.4.10.0330.02213.47
5.4.00.0370.02113.26
5.3.290.0270.02212.83
5.3.280.0200.02312.83
5.3.270.0500.01612.83
5.3.260.0370.02412.83
5.3.250.0380.02212.83
5.3.240.0340.02412.83
5.3.230.0290.02212.83
5.3.220.0290.02112.83
5.3.210.0350.02112.83
5.3.200.0420.02012.83
5.3.190.0260.02112.83
5.3.180.0330.02012.83
5.3.170.0480.02212.83
5.3.160.0310.02012.83
5.3.150.0190.02412.83
5.3.140.0190.02212.83
5.3.130.0380.02412.83
5.3.120.0370.01512.83
5.3.110.0300.02312.83
5.3.100.0330.02012.83
5.3.90.0240.02612.83
5.3.80.0230.02612.83
5.3.70.0200.02012.83
5.3.60.0350.01812.83
5.3.50.0520.01912.83
5.3.40.0360.02112.83
5.3.30.0300.02412.83
5.3.20.0460.01812.83
5.3.10.0430.02212.83
5.3.00.0390.01912.82
5.2.170.0900.02315.23
5.2.160.0430.04015.22
5.2.150.0770.02715.22
5.2.140.0500.02715.22
5.2.130.0700.03015.22
5.2.120.0430.02715.22
5.2.110.0300.04015.22
5.2.100.0670.02715.22
5.2.90.0700.03715.22
5.2.80.0370.02315.22
5.2.70.0270.03315.22
5.2.60.0300.03015.22
5.2.50.0570.03015.22
5.2.40.0600.02015.22
5.2.30.0070.03315.22
5.2.20.0370.02315.22
5.2.10.0770.02315.22
5.2.00.0170.03315.22
5.1.60.0170.01715.22
5.1.50.0400.02315.21
5.1.40.0530.02715.21
5.1.30.0500.02715.21
5.1.20.0230.04015.21
5.1.10.0700.02315.21
5.1.00.0200.01715.21
5.0.50.0200.01715.21
5.0.40.0270.01715.21
5.0.30.0100.03015.21
5.0.20.0270.01715.21
5.0.10.0230.01715.21
5.0.00.0130.03315.21
4.4.90.0170.02315.22
4.4.80.0270.01715.22
4.4.70.0330.02015.22
4.4.60.0070.01715.21
4.4.50.0230.02015.22
4.4.40.0100.03315.21
4.4.30.0270.01015.21
4.4.20.0370.01715.21
4.4.10.0030.02015.21
4.4.00.0200.02015.21
4.3.110.0300.02015.21
4.3.100.0270.01715.21
4.3.90.0130.01315.21
4.3.80.0070.02315.21
4.3.70.0170.01315.21
4.3.60.0030.01715.21
4.3.50.0270.02015.21
4.3.40.0070.03015.21
4.3.30.0000.02015.21
4.3.20.0030.01715.21
4.3.10.0030.01715.21
4.3.00.0100.01315.21

preferences:
38.71 ms | 401 KiB | 5 Q