3v4l.org

run code in 300+ PHP versions simultaneously
<?php // define variables and set to empty values $name = $email = $gender = $comment = $website = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { $name = test_input($_POST["name"]); $email = test_input($_POST["email"]); $website = test_input($_POST["website"]); $comment = test_input($_POST["comment"]); $gender = test_input($_POST["gender"]); } function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } ?>

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.0140.00316.75
8.3.50.0090.01322.93
8.3.40.0060.00918.67
8.3.30.0100.00319.22
8.3.20.0050.00220.38
8.3.10.0110.00323.42
8.3.00.0030.00619.27
8.2.180.0120.00616.88
8.2.170.0040.01122.96
8.2.160.0070.00720.57
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0050.00321.01
8.2.110.0060.00320.47
8.2.100.0110.00018.28
8.2.90.0000.00819.21
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0040.00418.28
8.2.30.0000.00719.49
8.2.20.0040.00417.70
8.2.10.0040.00418.17
8.2.00.0000.00717.86
8.1.280.0040.01425.92
8.1.270.0030.00623.79
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0090.00022.14
8.1.230.0030.00719.09
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0060.00617.23
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0060.00318.71
8.1.160.0000.00821.88
8.1.150.0050.00218.91
8.1.140.0080.00017.32
8.1.130.0000.00817.81
8.1.120.0000.00817.48
8.1.110.0040.00417.50
8.1.100.0040.00417.36
8.1.90.0040.00417.51
8.1.80.0040.00317.49
8.1.70.0000.00717.45
8.1.60.0040.00417.57
8.1.50.0040.00417.55
8.1.40.0070.00017.39
8.1.30.0040.00417.66
8.1.20.0040.00417.50
8.1.10.0000.00817.55
8.1.00.0050.00317.35
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00618.40
8.0.270.0030.00317.29
8.0.260.0040.00417.25
8.0.250.0000.00717.04
8.0.240.0040.00417.07
8.0.230.0050.00317.02
8.0.220.0000.00816.91
8.0.210.0030.00316.81
8.0.200.0040.00417.05
8.0.190.0040.00416.89
8.0.180.0000.00716.92
8.0.170.0040.00416.93
8.0.160.0000.00816.91
8.0.150.0000.00816.91
8.0.140.0040.00416.80
8.0.130.0000.00713.30
8.0.120.0080.00016.91
8.0.110.0000.00816.98
8.0.100.0080.00017.01
8.0.90.0040.00416.89
8.0.80.0140.00316.92
8.0.70.0030.00516.80
8.0.60.0040.00416.81
8.0.50.0040.00416.77
8.0.30.0120.01017.02
8.0.20.0120.00817.40
8.0.10.0040.00417.10
8.0.00.0080.00916.62
7.4.330.0000.00515.01
7.4.320.0000.00616.43
7.4.300.0030.00316.55
7.4.290.0000.00716.50
7.4.280.0040.00416.45
7.4.270.0000.00616.63
7.4.260.0000.00716.38
7.4.250.0080.00016.59
7.4.240.0020.00616.59
7.4.230.0000.00716.59
7.4.220.0100.01416.46
7.4.210.0070.00716.63
7.4.200.0070.00016.52
7.4.160.0100.00616.48
7.4.150.0130.00417.40
7.4.140.0120.01217.86
7.4.130.0060.01116.39
7.4.120.0110.00916.46
7.4.110.0040.01316.45
7.4.100.0070.01016.50
7.4.90.0070.01116.54
7.4.80.0120.00619.39
7.4.70.0060.01216.66
7.4.60.0120.00316.44
7.4.50.0000.00816.62
7.4.40.0120.00416.45
7.4.30.0030.01316.53
7.4.00.0060.00915.00
7.3.330.0030.00313.19
7.3.320.0030.00313.16
7.3.310.0040.00416.32
7.3.300.0000.00716.38
7.3.290.0110.00416.38
7.3.280.0060.00916.36
7.3.270.0120.00617.40
7.3.260.0140.00316.61
7.3.250.0110.00616.52
7.3.240.0060.01516.43
7.3.230.0060.01016.39
7.3.210.0030.01316.42
7.3.200.0140.00619.39
7.3.190.0070.01016.38
7.3.180.0030.01216.43
7.3.170.0090.00616.39
7.3.160.0130.00616.35
7.3.10.0150.00616.27
7.3.00.0040.01516.17
7.2.330.0060.01216.68
7.2.320.0030.01516.58
7.2.310.0070.01116.28
7.2.300.0070.01116.42
7.2.290.0000.01916.45
7.2.130.0140.00316.45
7.2.120.0150.00616.31
7.2.110.0110.01116.49
7.2.100.0120.01816.57
7.2.90.0100.01016.11
7.2.80.0100.01016.08
7.2.70.0080.01416.02
7.2.60.0110.00916.38
7.2.50.0190.01216.88
7.2.40.0080.00816.22
7.2.30.0190.00716.96
7.2.20.0090.00916.42
7.2.10.0170.00316.37
7.2.00.0100.00817.94
7.1.250.0110.00915.42
7.1.200.0030.00615.79
7.1.100.0060.00617.70
7.1.70.0030.00616.95
7.1.60.0130.01319.46
7.1.50.0090.00616.77
7.1.00.0130.06722.28
7.0.200.0070.01016.32
7.0.140.0030.07022.01
7.0.70.0030.08321.65
7.0.60.0070.07721.61
7.0.50.0000.08322.11
7.0.40.0000.06020.18
7.0.30.0070.03720.17
7.0.20.0000.04020.07
7.0.10.0000.07720.11
7.0.00.0070.08320.09
5.6.280.0070.06721.02
5.6.220.0030.08320.44
5.6.210.0100.07720.54
5.6.200.0030.08320.95
5.6.190.0000.04321.07
5.6.180.0000.05720.93
5.6.170.0030.08021.00
5.6.160.0070.05721.02
5.6.150.0070.08021.12
5.6.140.0100.07320.93
5.6.130.0130.07721.02
5.6.120.0030.08021.10
5.6.110.0000.06721.09
5.6.100.0000.05320.94
5.6.90.0100.06321.09
5.6.80.0070.06720.33
5.6.70.0000.04020.44
5.6.60.0030.03720.49
5.6.50.0030.04020.43
5.6.40.0030.03720.38
5.6.30.0070.03320.38
5.6.20.0000.05320.30
5.6.10.0070.03320.42
5.6.00.0030.04020.46
5.5.360.0070.08020.33
5.5.350.0070.08320.38
5.5.340.0070.04720.92
5.5.330.0030.05020.88
5.5.320.0030.04020.84
5.5.310.0030.04320.87
5.5.300.0030.08020.76
5.5.290.0070.08720.89
5.5.280.0070.08020.75
5.5.270.0000.05020.87
5.5.260.0030.04320.86
5.5.250.0070.07320.58
5.5.240.0070.03720.26
5.5.230.0000.04720.24
5.5.220.0000.04020.19
5.5.210.0030.03720.27
5.5.200.0000.04020.11
5.5.190.0000.03320.22
5.5.180.0030.05320.15
5.5.160.0000.03320.24
5.5.150.0070.04320.20
5.5.140.0000.04320.11
5.5.130.0000.03319.98
5.5.120.0030.03720.10
5.5.110.0030.03720.13
5.5.100.0000.03320.11
5.5.90.0030.03020.05
5.5.80.0030.04020.08
5.5.70.0030.03320.09
5.5.60.0030.03020.04
5.5.50.0030.02720.10
5.5.40.0000.03720.08
5.5.30.0000.03319.92
5.5.20.0000.03320.03
5.5.10.0000.03320.01
5.5.00.0000.04320.09
5.4.450.0000.07719.36
5.4.440.0000.08019.34
5.4.430.0100.03019.16
5.4.420.0100.03319.21
5.4.410.0100.06719.05
5.4.400.0000.03719.22
5.4.390.0100.03019.19
5.4.380.0000.04319.02
5.4.370.0070.03318.95
5.4.360.0030.04018.94
5.4.350.0000.03718.91
5.4.340.0000.05018.86
5.4.320.0000.03319.02
5.4.310.0000.03019.12
5.4.300.0000.03019.16
5.4.290.0000.03019.07
5.4.280.0000.03318.89
5.4.270.0000.03018.89
5.4.260.0000.03718.86
5.4.250.0070.02719.05
5.4.240.0070.02719.21
5.4.230.0000.03319.16
5.4.220.0030.03019.19
5.4.210.0000.03719.14
5.4.200.0000.03719.10
5.4.190.0000.03019.11
5.4.180.0000.03319.16
5.4.170.0070.02719.16
5.4.160.0000.03319.01
5.4.150.0070.02719.15
5.4.140.0000.03016.38
5.4.130.0000.03316.39
5.4.120.0000.04716.35
5.4.110.0030.04316.45
5.4.100.0130.06016.48
5.4.90.0030.05716.48
5.4.80.0030.07016.36
5.4.70.0000.07716.30
5.4.60.0030.07016.45
5.4.50.0030.04716.43
5.4.40.0030.07316.27
5.4.30.0030.06716.44
5.4.20.0070.05716.45
5.4.10.0000.07016.56
5.4.00.0000.07715.79
5.3.290.0030.04014.77
5.3.280.0000.03314.55
5.3.270.0000.03014.54
5.3.260.0000.03014.66
5.3.250.0030.02714.59
5.3.240.0000.03014.65
5.3.230.0000.03314.62
5.3.220.0070.06714.57
5.3.210.0000.07314.59
5.3.200.0000.05714.66
5.3.190.0030.08014.67
5.3.180.0000.07314.67
5.3.170.0070.08014.68
5.3.160.0100.07314.53
5.3.150.0070.06314.66
5.3.140.0000.07014.61
5.3.130.0030.07714.52
5.3.120.0000.08014.61
5.3.110.0030.08014.57
5.3.100.0000.07014.00
5.3.90.0070.07014.04
5.3.80.0030.07014.13
5.3.70.0030.05714.13
5.3.60.0030.07014.13
5.3.50.0000.04714.04
5.3.40.0000.04014.00
5.3.30.0030.07714.00
5.3.20.0000.03713.58
5.3.10.0030.03313.68
5.3.00.0000.03713.69
5.2.170.0000.04012.53
5.2.160.0030.02712.53
5.2.150.0000.03312.53
5.2.140.0000.03012.53
5.2.130.0030.02312.53
5.2.120.0000.03312.53
5.2.110.0030.02712.53
5.2.100.0000.02712.53
5.2.90.0000.03312.53
5.2.80.0000.04712.53
5.2.70.0030.03712.53
5.2.60.0030.06712.53
5.2.50.0000.06712.53
5.2.40.0070.05312.53
5.2.30.0070.04712.53
5.2.20.0000.03012.53
5.2.10.0030.06012.53
5.2.00.0030.06312.53
5.1.60.0070.02712.53
5.1.50.0030.04012.53
5.1.40.0000.02312.53
5.1.30.0000.03712.53
5.1.20.0100.04712.53
5.1.10.0000.03012.53
5.1.00.0030.05312.53
5.0.50.0000.04312.53
5.0.40.0030.04712.53
5.0.30.0030.05012.53
5.0.20.0000.03012.53
5.0.10.0030.04012.53
5.0.00.0000.06712.53
4.4.90.0000.03312.53
4.4.80.0000.03712.53
4.4.70.0030.03312.53
4.4.60.0000.02312.53
4.4.50.0000.03712.53
4.4.40.0000.03012.53
4.4.30.0000.01712.53
4.4.20.0030.01712.53
4.4.10.0070.02012.53
4.4.00.0070.04312.53
4.3.110.0030.03312.53
4.3.100.0000.01712.53
4.3.90.0030.02712.53
4.3.80.0000.04312.53
4.3.70.0030.03012.53
4.3.60.0070.03012.53
4.3.50.0030.03312.53
4.3.40.0030.03312.53
4.3.30.0000.03312.53
4.3.20.0030.02012.53
4.3.10.0000.03012.53
4.3.00.0000.02012.53

preferences:
37.04 ms | 401 KiB | 5 Q