3v4l.org

run code in 300+ PHP versions simultaneously
<?php // define variables and set to empty values $nameErr = $emailErr = $genderErr = $websiteErr = ""; $name = $email = $gender = $comment = $website = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["name"])) { $nameErr = "Name is required"; } else { $name = test_input($_POST["name"]); } if (empty($_POST["email"])) { $emailErr = "Email is required"; } else { $email = test_input($_POST["email"]); } if (empty($_POST["website"])) { $website = ""; } else { $website = test_input($_POST["website"]); } if (empty($_POST["comment"])) { $comment = ""; } else { $comment = test_input($_POST["comment"]); } if (empty($_POST["gender"])) { $genderErr = "Gender is required"; } else { $gender = test_input($_POST["gender"]); } } ?>

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.0110.01118.43
8.3.60.0150.00416.88
8.3.50.0150.00321.98
8.3.40.0070.00718.97
8.3.30.0120.00319.05
8.3.20.0030.00620.28
8.3.10.0040.00423.56
8.3.00.0050.00319.55
8.2.180.0120.00316.60
8.2.170.0070.00722.96
8.2.160.0070.00720.10
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0100.00726.16
8.2.120.0050.00321.04
8.2.110.0030.00622.11
8.2.100.0180.00017.81
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0080.00017.46
8.2.60.0060.00317.80
8.2.50.0030.00618.07
8.2.40.0040.00419.41
8.2.30.0040.00418.37
8.2.20.0000.00817.84
8.2.10.0000.00819.92
8.2.00.0050.00217.79
8.1.280.0110.00725.92
8.1.270.0070.00723.97
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00523.82
8.1.230.0070.00419.17
8.1.220.0040.00417.79
8.1.210.0000.00918.77
8.1.200.0130.00317.23
8.1.190.0030.00617.22
8.1.180.0000.00718.10
8.1.170.0030.00618.63
8.1.160.0040.00422.05
8.1.150.0040.00418.77
8.1.140.0000.00717.48
8.1.130.0030.00317.86
8.1.120.0000.00717.43
8.1.110.0080.00017.54
8.1.100.0070.00017.54
8.1.90.0000.00717.52
8.1.80.0000.00717.43
8.1.70.0000.00817.34
8.1.60.0000.01017.66
8.1.50.0030.00517.52
8.1.40.0040.00417.53
8.1.30.0090.00017.57
8.1.20.0060.00317.59
8.1.10.0020.00517.48
8.1.00.0040.00417.54
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0040.00418.48
8.0.270.0040.00417.18
8.0.260.0030.00317.23
8.0.250.0030.00317.08
8.0.240.0020.00517.01
8.0.230.0000.00717.06
8.0.220.0030.00316.86
8.0.210.0030.00316.88
8.0.200.0000.00616.93
8.0.190.0040.00416.94
8.0.180.0000.00816.91
8.0.170.0040.00417.02
8.0.160.0040.00417.00
8.0.150.0050.00216.94
8.0.140.0080.00016.95
8.0.130.0000.00613.45
8.0.120.0000.00716.80
8.0.110.0040.00416.92
8.0.100.0040.00417.00
8.0.90.0040.00416.82
8.0.80.0080.01117.00
8.0.70.0070.00716.95
8.0.60.0120.00316.91
8.0.50.0110.00416.98
8.0.30.0110.00917.16
8.0.20.0110.01217.28
8.0.10.0140.01817.11
8.0.00.0110.01016.92
7.4.330.0000.00515.00
7.4.320.0000.00816.64
7.4.300.0000.00716.53
7.4.290.0070.00016.64
7.4.280.0080.00016.54
7.4.270.0000.00716.57
7.4.260.0070.00016.61
7.4.250.0040.00416.59
7.4.240.0030.00516.56
7.4.230.0070.00016.52
7.4.220.0090.01216.50
7.4.210.0080.00616.59
7.4.200.0240.00916.66
7.4.190.0200.00616.67
7.4.180.0170.00616.66
7.4.160.0160.00416.63
7.4.150.0100.01017.00
7.4.140.0120.00817.43
7.4.130.0090.01216.52
7.4.120.0100.01416.48
7.4.110.0170.00616.56
7.4.100.0160.00516.53
7.4.90.0170.00216.51
7.4.80.0110.00817.87
7.4.70.0080.00916.49
7.4.60.0090.00916.32
7.4.50.0060.00616.50
7.4.40.0130.00416.44
7.4.30.0100.00616.51
7.4.20.0070.00716.41
7.4.10.0140.00715.79
7.4.00.0130.00715.55
7.3.330.0030.00313.19
7.3.320.0000.00513.19
7.3.310.0000.00716.30
7.3.300.0040.00416.39
7.3.290.0140.00316.32
7.3.280.0090.01216.35
7.3.270.0190.00516.85
7.3.260.0110.01116.40
7.3.250.0150.00616.43
7.3.240.0130.00816.42
7.3.230.0140.00916.37
7.3.220.0210.00316.39
7.3.210.0170.00716.27
7.3.200.0160.00517.87
7.3.190.0150.00716.36
7.3.180.0090.01116.31
7.3.170.0120.00816.37
7.3.160.0170.00316.31
7.3.150.0160.00616.36
7.3.140.0150.00816.34
7.3.130.0120.00815.63
7.3.120.0070.01115.21
7.3.110.0120.01115.53
7.3.100.0160.00215.63
7.3.90.0130.00715.68
7.3.80.0080.00915.45
7.3.70.0140.00515.59
7.3.60.0120.00615.52
7.3.50.0130.00815.59
7.3.40.0100.01115.61
7.3.30.0140.00315.57
7.3.20.0200.00916.46
7.3.10.0100.01016.43
7.3.00.0130.00816.38
7.2.340.0160.01216.33
7.2.330.0160.00816.46
7.2.320.0120.01216.47
7.2.310.0160.00916.47
7.2.300.0140.01116.50
7.2.290.0130.01216.31
7.2.280.0120.01616.25
7.2.270.0170.01716.27
7.2.260.0120.01215.64
7.2.250.0140.01215.48
7.2.240.0120.00915.73
7.2.230.0090.01215.55
7.2.220.0120.01115.50
7.2.210.0140.00915.51
7.2.200.0150.01015.54
7.2.190.0120.01115.70
7.2.180.0140.01315.66
7.2.170.0100.01215.71
7.2.160.0170.00515.75
7.2.150.0100.01416.59
7.2.140.0180.00816.64
7.2.130.0310.00816.48
7.2.120.0090.01216.64
7.2.110.0100.00916.51
7.2.100.0130.00516.52
7.2.90.0100.01016.62
7.2.80.0100.00816.52
7.2.70.0100.00816.53
7.2.60.0110.00916.55
7.2.50.0140.00616.58
7.2.40.0130.00916.38
7.2.30.0110.01116.75
7.2.20.0070.00916.77
7.2.10.0140.00516.71
7.2.00.0100.00817.35
7.1.330.0100.00815.72
7.1.320.0140.00515.74
7.1.310.0160.00215.66
7.1.300.0130.00715.59
7.1.290.0110.01115.61
7.1.280.0130.00815.55
7.1.270.0070.01515.68
7.1.260.0120.01115.75
7.1.250.0110.00815.55
7.1.240.0100.00815.59
7.1.230.0240.00615.56
7.1.220.0120.00915.61
7.1.210.0090.01315.62
7.1.200.0130.01115.53
7.1.190.0110.00715.62
7.1.180.0100.00915.71
7.1.170.0140.00815.56
7.1.160.0150.00815.54
7.1.150.0170.00715.41
7.1.140.0120.00615.62
7.1.130.0150.00915.60
7.1.120.0100.01015.50
7.1.110.0050.01215.54
7.1.100.0110.00616.47
7.1.90.0080.00915.49
7.1.80.0110.00915.71
7.1.70.0170.00516.06
7.1.60.0140.00616.96
7.1.50.0100.01116.08
7.1.40.0130.00815.49
7.1.30.0140.00715.62
7.1.20.0120.01015.65
7.1.10.0120.00915.54
7.1.00.0080.03217.91
7.0.330.0130.00615.22
7.0.320.0110.00715.28
7.0.310.0120.00915.22
7.0.300.0130.00715.25
7.0.290.0130.00815.11
7.0.280.0140.00515.05
7.0.270.0130.00815.21
7.0.260.0070.01115.10
7.0.250.0140.00415.29
7.0.240.0130.00515.35
7.0.230.0110.00615.29
7.0.220.0110.00715.38
7.0.210.0070.01015.14
7.0.200.0130.00615.68
7.0.190.0100.01015.14
7.0.180.0130.00615.30
7.0.170.0090.00915.38
7.0.160.0150.00715.16
7.0.150.0110.00915.25
7.0.140.0080.03017.46
7.0.130.0100.00815.19
7.0.120.0120.00615.09
7.0.110.0120.00915.14
7.0.100.0110.01115.25
7.0.90.0110.00815.26
7.0.80.0100.01015.27
7.0.70.0100.01015.28
7.0.60.0090.02616.75
7.0.50.0110.03116.12
7.0.40.0130.02616.15
7.0.30.0140.01716.32
7.0.20.0170.01916.14
7.0.10.0160.03316.34
7.0.00.0360.01916.21
5.6.400.0190.00514.95
5.6.390.0090.01015.08
5.6.380.0110.00615.01
5.6.370.0120.00714.93
5.6.360.0130.00814.97
5.6.350.0100.01215.20
5.6.340.0100.01115.18
5.6.330.0100.00815.13
5.6.320.0120.00715.08
5.6.310.0100.01115.08
5.6.300.0100.01115.15
5.6.290.0150.00515.23
5.6.280.0120.02917.02
5.6.270.0170.00315.25
5.6.260.0140.01015.10
5.6.250.0050.01315.06
5.6.240.0130.00715.08
5.6.230.0120.00915.16
5.6.220.0140.00715.08
5.6.210.0140.03616.92
5.6.200.0110.02116.04
5.6.190.0130.03116.95
5.6.180.1360.01916.85
5.6.170.0170.02516.85
5.6.160.0120.03117.09
5.6.150.0110.02116.22
5.6.140.0110.02516.14
5.6.130.0110.03316.15
5.6.120.0130.02117.12
5.6.110.0100.03316.95
5.6.100.0080.03317.08
5.6.90.0150.03216.98
5.6.80.0080.03516.74
5.6.70.0940.01816.85
5.6.60.0120.00715.12
5.6.50.0080.01114.82
5.6.40.0090.01114.86
5.6.30.0130.00515.00
5.6.20.0100.00815.08
5.6.10.0090.01314.91
5.6.00.0130.00615.08
5.5.380.0150.00715.11
5.5.370.0110.01115.09
5.5.360.0120.01314.96
5.5.350.0070.03416.72
5.5.340.0110.03016.04
5.5.330.0110.01816.85
5.5.320.0150.02516.75
5.5.310.0130.02116.67
5.5.300.0110.02716.05
5.5.290.0130.01715.84
5.5.280.0150.02716.84
5.5.270.0130.02916.95
5.5.260.0130.02916.93
5.5.250.0110.02216.77
5.5.240.0140.02316.62
5.5.230.0110.00714.92
5.5.220.0120.00614.97
5.5.210.0150.00914.95
5.5.200.0050.01614.88
5.5.190.0110.00514.92
5.5.180.0130.00614.95
5.5.170.0100.01014.98
5.5.160.0100.00714.95
5.5.150.0110.01015.00
5.5.140.0090.00915.00
5.5.130.0130.00314.81
5.5.120.0110.01114.74
5.5.110.0080.01314.76
5.5.100.0090.00914.88
5.5.90.0110.00814.83
5.5.80.0120.00514.89
5.5.70.0110.00714.97
5.5.60.0130.00714.80
5.5.50.0110.01114.90
5.5.40.0150.00514.78
5.5.30.0100.01015.10
5.5.20.0060.01414.94
5.5.10.0140.00614.79
5.5.00.0130.00714.84
5.4.450.0410.01814.73
5.4.440.0210.01614.76
5.4.430.0210.01822.89
5.4.420.0420.01314.71
5.4.410.0150.01522.91
5.4.400.0200.01222.86
5.4.390.0220.01822.89
5.4.380.0110.02214.43
5.4.370.0090.02214.41
5.4.360.0130.02514.49
5.4.350.0060.02414.42
5.4.340.0070.02514.48
5.4.330.0060.00512.38
5.4.320.0050.01912.40
5.4.310.0070.01912.46
5.4.300.0090.01412.42
5.4.290.0070.01712.43
5.4.280.0070.01512.38
5.4.270.0070.01712.38
5.4.260.0100.01612.34
5.4.250.0070.02012.37
5.4.240.0080.01512.38
5.4.230.0090.01912.31
5.4.220.0070.01912.33
5.4.210.0070.01512.29
5.4.200.0070.01712.32
5.4.190.0050.01712.29
5.4.180.0080.01512.29
5.4.170.0080.01712.35
5.4.160.0080.01712.36
5.4.150.0090.01712.34
5.4.140.0050.01912.28
5.4.130.0060.01812.26
5.4.120.0060.01812.25
5.4.110.0100.01612.26
5.4.100.0120.01712.25
5.4.90.0060.02112.26
5.4.80.0070.01712.28
5.4.70.0150.01612.27
5.4.60.0090.01512.28
5.4.50.0070.01912.23
5.4.40.0120.01612.23
5.4.30.0090.02112.24
5.4.20.0100.01412.26
5.4.10.0060.02012.27
5.4.00.0080.01712.02
5.3.290.0050.01912.66
5.3.280.0040.02012.60
5.3.270.0050.02112.68
5.3.260.0110.01812.64
5.3.250.0060.02012.62
5.3.240.0070.01712.65
5.3.230.0060.01912.59
5.3.220.0080.01612.70
5.3.210.0050.02012.64
5.3.200.0060.01812.65
5.3.190.0070.01912.66
5.3.180.0080.01812.68
5.3.170.0090.01512.67
5.3.160.0080.01512.67
5.3.150.0070.01712.69
5.3.140.0080.01812.74
5.3.130.0110.01512.66
5.3.120.0070.02012.62
5.3.110.0090.02012.65
5.3.100.0060.02012.42
5.3.90.0100.01712.54
5.3.80.0050.02112.45
5.3.70.0070.01712.45
5.3.60.0050.01712.38
5.3.50.0060.01912.40
5.3.40.0080.01612.38
5.3.30.0100.01512.36
5.3.20.0090.01812.27
5.3.10.0100.01712.24
5.3.00.0060.02212.22

preferences:
35.17 ms | 401 KiB | 5 Q