3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = array( 'host' => 'mysql.hostinger.nl', 'user' => 'u126267875_pepe', 'pass' => 'com-puter', 'dbname' => 'u126267875_medal' ); if (!mysql_connect($db['host'], $db['user'], $db['pass'])){ $_SESSION['foutcode'] = 'foutcode 002'; header('location: http://medalwars.url.ph/'); exit(); }elseif (!mysql_select_db($db['dbname'])){ $_SESSION['foutcode'] = 'foutcode 003'; header("location: $before"); exit(); } if($before == 'http://medalwars.url.ph/create_account/'){ if(empty($username) AND empty($password) AND empty($email)){ $_SESSION['foutcode'] = 'foutcode 007'; header("location: $before"); exit(); }elseif(empty($username) AND empty($password)){ $_SESSION['foutcode'] = 'foutcode 012'; header("location: $before"); exit(); }elseif(empty($username) AND empty($email)){ $_SESSION['foutcode'] = 'foutcode 013'; header("location: $before"); exit(); }elseif(empty($password) AND empty($email)){ $_SESSION['foutcode'] = 'foutcode 014'; header("location: $before"); exit(); }elseif(empty($username)){ $_SESSION['foutcode'] = 'foutcode 005'; header("location: $before"); exit(); }elseif(empty($password)){ $_SESSION['foutcode'] = 'foutcode 006'; header("location: $before"); exit(); }elseif(empty($email)){ $_SESSION['foutcode'] = 'foutcode 012'; header("location: $before"); exit(); } }elseif($before == 'http://medalwars.url.ph/'){ if(empty($username) AND empty($password)){ $_SESSION['foutcode'] = 'foutcode 007'; header("location: $before"); exit(); }elseif(empty($username)){ $_SESSION['foutcode'] = 'foutcode 005'; header("location: $before"); exit(); }elseif(empty($password)){ $_SESSION['foutcode'] = 'foutcode 006'; header("location: $before"); exit(); } } ?>

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.70.0060.00918.31
8.3.60.0110.01116.75
8.3.50.0110.00817.28
8.3.40.0070.01118.96
8.3.30.0070.00718.80
8.3.20.0030.00618.90
8.3.10.0100.00020.48
8.3.00.0000.00819.27
8.2.180.0090.00616.50
8.2.170.0120.00322.96
8.2.160.0070.00718.91
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0100.00020.98
8.2.110.0090.00020.52
8.2.100.0070.00417.72
8.2.90.0050.00319.09
8.2.80.0040.00419.30
8.2.70.0000.00817.48
8.2.60.0090.00017.80
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0030.00617.88
8.2.20.0050.00517.64
8.2.10.0030.00517.69
8.2.00.0040.00417.84
8.1.280.0130.00625.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00321.95
8.1.230.0120.00022.64
8.1.220.0000.00818.77
8.1.210.0000.00919.00
8.1.200.0040.00417.35
8.1.190.0030.00517.40
8.1.180.0060.00318.10
8.1.170.0060.00318.84
8.1.160.0040.00418.85
8.1.150.0040.00418.54
8.1.140.0040.00417.42
8.1.130.0000.00817.85
8.1.120.0030.00317.38
8.1.110.0060.00317.45
8.1.100.0070.00017.41
8.1.90.0050.00317.32
8.1.80.0070.00017.47
8.1.70.0070.00017.40
8.1.60.0030.00517.60
8.1.50.0040.00417.38
8.1.40.0000.00817.61
8.1.30.0030.00617.68
8.1.20.0000.00717.52
8.1.10.0040.00417.50
8.1.00.0040.00417.53
8.0.300.0000.00819.84
8.0.290.0040.00416.75
8.0.280.0040.00418.40
8.0.270.0030.00417.22
8.0.260.0040.00416.87
8.0.250.0070.00016.98
8.0.240.0030.00716.97
8.0.230.0000.00716.93
8.0.220.0040.00416.78
8.0.210.0000.00716.94
8.0.200.0040.00416.84
8.0.190.0040.00416.88
8.0.180.0050.00316.90
8.0.170.0080.00016.85
8.0.160.0040.00417.00
8.0.150.0000.00816.89
8.0.140.0070.00416.90
8.0.130.0030.00313.30
8.0.120.0060.00616.88
8.0.110.0080.00016.74
8.0.100.0070.00016.91
8.0.90.0070.00016.90
8.0.80.0100.01016.82
8.0.70.0000.00716.70
8.0.60.0080.00016.86
8.0.50.0000.00716.86
8.0.30.0110.00817.11
8.0.20.0140.00516.97
8.0.10.0000.00717.10
8.0.00.0150.00816.78
7.4.330.0020.00212.94
7.4.320.0030.00316.45
7.4.300.0060.00016.53
7.4.290.0030.00316.63
7.4.280.0060.00316.55
7.4.270.0000.00816.52
7.4.260.0030.00313.30
7.4.250.0000.00816.52
7.4.240.0070.00016.62
7.4.230.0070.00016.63
7.4.220.0070.01016.62
7.4.210.0130.00716.51
7.4.200.0000.00816.52
7.4.190.0000.00716.68
7.4.160.0090.00616.65
7.4.150.0140.00316.69
7.4.140.0120.00416.31
7.4.130.0130.00616.60
7.4.120.0040.01316.74
7.4.110.0100.00716.38
7.4.100.0090.00916.51
7.4.90.0040.01416.56
7.4.80.0160.00719.39
7.4.70.0120.00416.73
7.4.60.0150.00016.50
7.4.50.0000.00616.55
7.4.40.0060.00916.23
7.4.30.0100.00716.55
7.4.10.0000.01515.18
7.4.00.0050.01115.05
7.3.330.0030.00313.02
7.3.320.0020.00613.13
7.3.310.0000.00816.09
7.3.300.0040.00416.40
7.3.290.0080.00916.26
7.3.280.0140.00616.24
7.3.270.0070.01016.45
7.3.260.0050.01316.48
7.3.250.0080.01016.35
7.3.240.0080.00816.55
7.3.230.0080.00816.51
7.3.210.0040.01216.35
7.3.200.0100.00716.39
7.3.190.0030.01916.54
7.3.180.0130.00316.63
7.3.170.0040.01216.45
7.3.160.0080.00816.52
7.3.130.0080.00714.81
7.3.120.0060.01014.78
7.3.110.0070.00714.70
7.3.100.0000.01414.71
7.3.90.0030.01214.67
7.3.80.0090.00314.48
7.3.70.0060.00614.79
7.3.60.0040.00714.86
7.3.50.0030.01014.99
7.3.40.0040.00414.75
7.3.30.0030.01014.86
7.3.20.0030.00916.50
7.3.10.0030.01016.57
7.3.00.0040.00716.64
7.2.330.0070.01016.62
7.2.320.0170.00016.35
7.2.310.0090.00916.59
7.2.300.0100.00716.66
7.2.290.0090.01216.39
7.2.260.0110.00614.73
7.2.250.0090.01214.94
7.2.240.0040.01115.15
7.2.230.0090.00615.05
7.2.220.0060.00614.80
7.2.210.0000.01214.80
7.2.200.0000.01714.85
7.2.190.0030.01414.91
7.2.180.0030.00914.84
7.2.170.0030.00714.78
7.2.160.0040.00714.80
7.2.150.0060.00616.91
7.2.140.0090.00316.77
7.2.130.0000.00916.77
7.2.120.0070.00716.70
7.2.110.0040.00816.64
7.2.100.0030.01016.57
7.2.90.0080.00316.68
7.2.80.0060.01016.51
7.2.70.0070.00716.63
7.2.60.0070.00816.67
7.2.50.0030.01316.80
7.2.40.0090.00616.61
7.2.30.0060.01016.85
7.2.20.0060.00316.47
7.2.10.0070.00716.75
7.2.00.0030.01018.09
7.1.330.0030.01015.34
7.1.320.0030.01315.46
7.1.310.0060.00615.41
7.1.300.0110.00415.44
7.1.290.0000.01115.46
7.1.280.0060.00915.75
7.1.270.0000.01215.50
7.1.260.0090.00315.32
7.1.250.0100.00315.62
7.1.240.0030.00615.65
7.1.230.0060.00615.41
7.1.220.0060.01015.32
7.1.210.0060.01015.34
7.1.200.0090.00515.57
7.1.190.0070.00715.61
7.1.180.0110.00415.57
7.1.170.0060.00615.50
7.1.160.0100.00615.47
7.1.150.0090.00315.52
7.1.140.0070.00415.71
7.1.130.0060.00615.53
7.1.120.0060.00615.41
7.1.110.0030.01715.52
7.1.100.0050.00716.73
7.1.90.0100.00315.57
7.1.80.0030.01015.48
7.1.70.0030.00716.31
7.1.60.0110.01017.41
7.1.50.0120.00316.16
7.1.40.0000.01215.53
7.1.30.0000.01415.71
7.1.20.0080.00315.69
7.1.10.0070.00715.68
7.1.00.0050.03718.79
7.0.330.0030.01015.14
7.0.320.0070.00715.10
7.0.310.0040.00715.19
7.0.300.0080.00315.25
7.0.290.0070.00715.36
7.0.280.0090.00315.34
7.0.270.0040.00815.07
7.0.260.0060.00915.25
7.0.250.0100.01015.43
7.0.240.0030.00715.34
7.0.230.0110.00314.99
7.0.220.0090.00315.44
7.0.210.0070.00315.36
7.0.200.0050.00515.93
7.0.190.0070.00315.28
7.0.180.0040.00715.33
7.0.170.0070.00715.34
7.0.160.0050.00315.33
7.0.150.0000.01315.15
7.0.140.0070.03918.78
7.0.130.0070.00715.31
7.0.120.0050.03218.65
7.0.110.0040.01215.20
7.0.100.0030.00615.23
7.0.90.0060.00615.34
7.0.80.0060.00615.19
7.0.70.0070.00315.33
7.0.60.0070.03317.70
7.0.50.0070.04316.63
7.0.40.0020.02615.57
7.0.30.0030.03315.56
7.0.20.0070.04515.56
7.0.10.0080.03415.58
7.0.00.0080.04015.53
5.6.400.0030.01014.43
5.6.390.0000.00814.16
5.6.380.0060.00613.87
5.6.370.0040.01114.14
5.6.360.0000.01214.39
5.6.350.0030.00514.37
5.6.340.0080.00314.28
5.6.330.0050.00313.96
5.6.320.0000.00913.98
5.6.310.0060.00314.09
5.6.300.0100.00714.48
5.6.290.0040.00414.14
5.6.280.0050.04217.75
5.6.270.0030.01014.14
5.6.260.0000.01314.42
5.6.250.0000.01014.27
5.6.240.0040.01114.19
5.6.230.0100.00314.40
5.6.220.0060.00614.16
5.6.210.0090.04217.32
5.6.200.0110.03116.18
5.6.190.0100.02216.26
5.6.180.0050.02516.08
5.6.170.0100.04416.07
5.6.160.0100.03916.21
5.6.150.0050.02316.34
5.6.140.0060.02516.23
5.6.130.0010.02816.16
5.6.120.0080.01816.23
5.6.110.0050.02216.09
5.6.100.0120.03716.39
5.6.90.0120.04416.25
5.6.80.0120.04015.80
5.6.70.0030.03515.84
5.6.60.0080.03415.94
5.6.50.0080.03515.84
5.6.40.0070.04315.84
5.6.30.0070.04015.78
5.6.20.0150.03315.91
5.6.10.0090.02815.74
5.6.00.0050.02816.03
5.5.380.0030.00914.29
5.5.370.0040.01114.32
5.5.360.0070.01014.14
5.5.350.0070.04217.28
5.5.340.0020.04115.99
5.5.330.0050.04516.13
5.5.320.0020.03316.03
5.5.310.0030.04516.04
5.5.300.0060.03616.21
5.5.290.0110.02316.11
5.5.280.0050.02316.26
5.5.270.0110.04016.01
5.5.260.0070.04716.08
5.5.250.0080.03015.98
5.5.240.0030.03115.56
5.5.230.0050.04415.67
5.5.220.0050.04315.68
5.5.210.0060.03915.68
5.5.200.0060.04115.77
5.5.190.0110.02615.57
5.5.180.0120.03515.68
5.5.170.0070.01013.84
5.5.160.0120.03015.62
5.5.150.0080.02315.80
5.5.140.0050.04315.74
5.5.130.0100.03815.79
5.5.120.0090.02015.60
5.5.110.0030.02315.79
5.5.100.0070.04215.55
5.5.90.0090.03315.53
5.5.80.0050.03915.67
5.5.70.0020.03415.67
5.5.60.0060.02715.67
5.5.50.0030.02815.66
5.5.40.0050.02815.65
5.5.30.0070.04215.70
5.5.20.0050.04415.52
5.5.10.0070.03215.52
5.5.00.0080.04215.65
5.4.450.0070.02015.76
5.4.440.0030.02215.78
5.4.430.0030.02915.71
5.4.420.0050.03215.73
5.4.410.0090.04015.61
5.4.400.0080.03915.58
5.4.390.0050.03315.56
5.4.380.0070.03815.58
5.4.370.0050.03715.55
5.4.360.0070.04015.58
5.4.350.0110.03215.61
5.4.340.0100.03415.57
5.4.330.0000.01012.13
5.4.320.0050.04015.58
5.4.310.0060.02115.47
5.4.300.0030.03415.54
5.4.290.0050.03815.54
5.4.280.0070.03515.58
5.4.270.0010.03115.54
5.4.260.0020.04615.50
5.4.250.0070.03715.57
5.4.240.0090.03515.57
5.4.230.0030.04515.57
5.4.220.0030.03515.54
5.4.210.0050.02215.66
5.4.200.0070.04215.47
5.4.190.0080.03815.55
5.4.180.0050.04115.66
5.4.170.0050.04215.56
5.4.160.0030.04315.46
5.4.150.0050.02515.54
5.4.140.0060.03314.22
5.4.130.0050.02714.18
5.4.120.0110.03614.21
5.4.110.0080.03714.26
5.4.100.0080.03714.28
5.4.90.0050.04114.25
5.4.80.0050.03814.14
5.4.70.0070.03814.19
5.4.60.0080.02414.26
5.4.50.0050.03014.24
5.4.40.0060.04114.36
5.4.30.0030.02514.23
5.4.20.0020.03514.26
5.4.10.0100.03314.22
5.4.00.0050.02313.92
5.3.290.0070.04013.40
5.3.280.0050.02313.36
5.3.270.0050.02913.36
5.3.260.0030.04513.35
5.3.250.0080.03213.33
5.3.240.0050.02613.38
5.3.230.0070.03813.34
5.3.220.0050.02913.34
5.3.210.0070.04013.39
5.3.200.0020.03813.27
5.3.190.0050.02713.32
5.3.180.0070.03913.35
5.3.170.0060.03813.33
5.3.160.0020.02813.24
5.3.150.0020.04513.34
5.3.140.0050.03813.33
5.3.130.0060.03613.32
5.3.120.0000.04713.33
5.3.110.0080.03813.33
5.3.100.0010.02613.02
5.3.90.0070.03613.12
5.3.80.0050.02213.07
5.3.70.0100.03513.08
5.3.60.0020.03113.05
5.3.50.0120.03313.00
5.3.40.0020.04213.03
5.3.30.0100.02512.92
5.3.20.0030.03912.88
5.3.10.0020.02712.89
5.3.00.0050.03012.88
5.2.170.0030.06011.14
5.2.160.0170.05011.17
5.2.150.0100.05710.95
5.2.140.0100.03710.98
5.2.130.0070.06311.06
5.2.120.0100.06011.08
5.2.110.0070.02711.10
5.2.100.0100.06010.91
5.2.90.0000.04310.91
5.2.80.0070.05710.89
5.2.70.0030.03711.11
5.2.60.0030.06010.90
5.2.50.0070.04011.19
5.2.40.0030.03310.96
5.2.30.0070.06310.97
5.2.20.0130.06010.77
5.2.10.0000.05310.89
5.2.00.0030.04710.69
5.1.60.0030.03010.06
5.1.50.0070.05310.04
5.1.40.0070.0509.99
5.1.30.0070.03710.37
5.1.20.0100.03010.28
5.1.10.0030.05310.08
5.1.00.0070.05310.12
5.0.50.0130.0408.58
5.0.40.0070.0378.40
5.0.30.0000.0708.18
5.0.20.0070.0438.42
5.0.10.0030.0278.16
5.0.00.0000.0338.17
4.4.90.0030.0407.73
4.4.80.0030.0337.73
4.4.70.0000.0277.73
4.4.60.0030.0377.73
4.4.50.0000.0407.73
4.4.40.0070.0437.73
4.4.30.0070.0377.73
4.4.20.0030.0407.73
4.4.10.0000.0277.73
4.4.00.0070.0477.73
4.3.110.0070.0377.73
4.3.100.0170.0237.73
4.3.90.0030.0207.73
4.3.80.0000.0337.73
4.3.70.0000.0207.73
4.3.60.0030.0337.73
4.3.50.0000.0207.73
4.3.40.0030.0237.73
4.3.30.0000.0177.73
4.3.20.0030.0277.73
4.3.10.0000.0277.73
4.3.00.0100.0277.73

preferences:
102.77 ms | 401 KiB | 5 Q