3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> </head> <body> <?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; } ?> </body> </html>

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.0070.00716.75
8.3.50.0170.00722.82
8.3.40.0150.00018.84
8.3.30.0030.01019.17
8.3.20.0040.00420.33
8.3.10.0030.00523.53
8.3.00.0080.00019.38
8.2.180.0140.00416.75
8.2.170.0070.01022.96
8.2.160.0060.00920.43
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00020.92
8.2.110.0030.00620.52
8.2.100.0060.00618.22
8.2.90.0000.00719.14
8.2.80.0080.00017.97
8.2.70.0060.00317.75
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0050.00218.34
8.2.30.0000.00719.35
8.2.20.0070.00017.90
8.2.10.0000.00718.18
8.2.00.0020.00517.87
8.1.280.0150.00425.92
8.1.270.0050.00323.82
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0040.00422.04
8.1.230.0090.00318.90
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.01217.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0030.00618.46
8.1.160.0050.00221.98
8.1.150.0040.00418.90
8.1.140.0000.00817.42
8.1.130.0070.00017.77
8.1.120.0000.00717.31
8.1.110.0070.00017.44
8.1.100.0000.00817.43
8.1.90.0040.00417.50
8.1.80.0000.00717.50
8.1.70.0070.00017.35
8.1.60.0060.00317.48
8.1.50.0050.00517.52
8.1.40.0000.00817.39
8.1.30.0000.00817.54
8.1.20.0040.00417.66
8.1.10.0050.00317.48
8.1.00.0000.00817.57
8.0.300.0070.00018.77
8.0.290.0050.00216.75
8.0.280.0000.00918.31
8.0.270.0030.00317.31
8.0.260.0000.00617.26
8.0.250.0030.00317.04
8.0.240.0000.00716.91
8.0.230.0020.00516.96
8.0.220.0030.00516.96
8.0.210.0000.00716.91
8.0.200.0030.00316.90
8.0.190.0000.00716.85
8.0.180.0000.00816.87
8.0.170.0030.00517.02
8.0.160.0070.00016.87
8.0.150.0070.00016.77
8.0.140.0030.00516.91
8.0.130.0060.00013.34
8.0.120.0080.00016.89
8.0.110.0000.00816.81
8.0.100.0070.00017.06
8.0.90.0040.00416.86
8.0.80.0070.01016.96
8.0.70.0000.00716.85
8.0.60.0040.00416.90
8.0.50.0040.00416.77
8.0.30.0080.01417.04
8.0.20.0130.00917.40
8.0.10.0040.00417.14
8.0.00.0100.00816.80
7.4.330.0050.00015.02
7.4.320.0000.00616.49
7.4.300.0060.00016.55
7.4.290.0000.00816.50
7.4.280.0040.00416.48
7.4.270.0070.00016.37
7.4.260.0000.00716.57
7.4.250.0020.00516.47
7.4.240.0030.00516.60
7.4.230.0020.00516.39
7.4.220.0100.00716.54
7.4.210.0000.01416.61
7.4.200.0040.00416.25
7.4.160.0090.00616.43
7.4.150.0170.00617.40
7.4.140.0090.00817.86
7.4.130.0100.01016.54
7.4.120.0070.01216.52
7.4.110.0090.00816.64
7.4.100.0110.00716.49
7.4.90.0110.00716.53
7.4.80.0150.00819.39
7.4.70.0140.00416.61
7.4.60.0060.01016.50
7.4.50.0040.00416.70
7.4.40.0160.00016.43
7.4.30.0090.00616.46
7.4.00.0000.01815.20
7.3.330.0060.00013.37
7.3.320.0060.00013.36
7.3.310.0040.00416.19
7.3.300.0000.00616.32
7.3.290.0000.01316.32
7.3.280.0090.00916.35
7.3.270.0070.01117.40
7.3.260.0090.00916.47
7.3.250.0130.00716.46
7.3.240.0140.00716.23
7.3.230.0130.00316.53
7.3.210.0100.00616.41
7.3.200.0070.01019.39
7.3.190.0120.00616.41
7.3.180.0070.01016.44
7.3.170.0080.00816.37
7.3.160.0120.00316.55
7.2.330.0100.00716.77
7.2.320.0040.01416.81
7.2.310.0030.01316.68
7.2.300.0100.00716.41
7.2.290.0120.01216.34
7.2.00.0040.00819.31
7.1.100.0190.00817.67
7.1.70.0030.00717.29
7.1.60.0100.01019.46
7.1.50.0070.01716.92
7.1.00.0070.06722.48
7.0.200.0070.00716.47
7.0.140.0030.06721.92
7.0.60.0100.07719.95
7.0.50.0030.04317.82
7.0.40.0100.04320.11
7.0.30.0270.08020.08
7.0.20.0130.04720.06
7.0.10.0100.04720.23
7.0.00.0030.09020.17
5.6.280.0170.05720.99
5.6.210.0030.04320.54
5.6.200.0000.07018.23
5.6.190.0000.05720.61
5.6.180.0600.06320.33
5.6.170.0330.07720.69
5.6.160.0070.07020.44
5.6.150.0070.07018.14
5.6.140.0170.04318.20
5.6.130.0070.05018.09
5.6.120.0000.06020.84
5.6.110.0070.06320.99
5.6.100.0100.07320.89
5.6.90.0070.03721.00
5.6.80.0100.07320.40
5.5.350.0170.03020.38
5.5.340.0100.08017.95
5.5.330.0100.05720.27
5.5.320.0230.05720.38
5.5.310.0300.06320.35
5.5.300.0070.05717.98
5.5.290.0030.04018.04
5.5.280.0200.07320.85
5.5.270.0070.08720.67
5.5.260.0030.04020.77
5.5.250.0070.07720.55
5.5.240.0230.06320.17
5.4.450.0170.05019.48
5.4.440.0300.04719.39
5.4.430.0200.04719.31
5.4.420.0300.04319.41
5.4.410.0830.03319.35
5.4.400.0870.03719.22
5.4.390.0500.04019.17
5.4.380.0230.06018.74
5.4.370.0600.06318.82
5.4.360.0370.06718.78
5.4.350.0370.05718.61
5.4.340.0270.06318.83
5.4.320.0030.04712.50
5.4.310.0050.03912.50
5.4.300.0100.03912.50
5.4.290.0050.03912.50
5.4.280.0020.03812.39
5.4.270.0060.03512.40
5.4.260.0040.03912.40
5.4.250.0030.04112.39
5.4.240.0040.03812.40
5.4.230.0050.03912.39
5.4.220.0070.03712.39
5.4.210.0060.03712.39
5.4.200.0040.04212.39
5.4.190.0060.04512.39
5.4.180.0100.04512.39
5.4.170.0080.04812.40
5.4.160.0100.04512.39
5.4.150.0080.04812.39
5.4.140.0100.04912.07
5.4.130.0100.04112.06
5.4.120.0060.05112.02
5.4.110.0050.03712.01
5.4.100.0050.03612.02
5.4.90.0050.03812.02
5.4.80.0070.03512.01
5.4.70.0070.03812.00
5.4.60.0030.04012.01
5.4.50.0040.03712.01
5.4.40.0070.03412.00
5.4.30.0070.03411.99
5.4.20.0080.03311.99
5.4.10.0090.03612.00
5.4.00.0080.03411.48
5.3.290.0030.04212.80
5.3.280.0060.03712.71
5.3.270.0040.04512.72
5.3.260.0120.03212.72
5.3.250.0080.03612.72
5.3.240.0060.03712.72
5.3.230.0060.04312.71
5.3.220.0090.03312.68
5.3.210.0040.04012.68
5.3.200.0070.03512.68
5.3.190.0050.03812.68
5.3.180.0070.03812.67
5.3.170.0050.03812.66
5.3.160.0030.03912.68
5.3.150.0040.03812.67
5.3.140.0100.03212.66
5.3.130.0070.04112.66
5.3.120.0050.04012.66
5.3.110.0100.03612.66
5.3.100.0080.03512.12
5.3.90.0060.03612.09
5.3.80.0060.03612.09
5.3.70.0050.03812.09
5.3.60.0050.03712.07
5.3.50.0050.03812.02
5.3.40.0060.03712.02
5.3.30.0050.03611.98
5.3.20.0090.03311.77
5.3.10.0070.03311.72
5.3.00.0040.03711.71
5.2.170.0060.0299.22
5.2.160.0050.0299.21
5.2.150.0070.0339.21
5.2.140.0080.0389.22
5.2.130.0020.0329.18
5.2.120.0070.0269.17
5.2.110.0070.0269.19
5.2.100.0060.0279.18
5.2.90.0080.0259.18
5.2.80.0040.0319.18
5.2.70.0030.0329.17
5.2.60.0060.0349.12
5.2.50.0040.0409.09
5.2.40.0060.0279.07
5.2.30.0080.0269.05
5.2.20.0050.0289.04
5.2.10.0030.0298.95
5.2.00.0020.0318.81
5.1.60.0060.0228.09
5.1.50.0040.0258.08
5.1.40.0070.0228.07
5.1.30.0040.0268.42
5.1.20.0050.0278.44
5.1.10.0030.0288.16
5.1.00.0040.0268.16
5.0.50.0020.0226.64
5.0.40.0020.0216.50
5.0.30.0040.0306.31
5.0.20.0030.0206.28
5.0.10.0040.0196.26
5.0.00.0040.0306.25
4.4.90.0030.0154.78
4.4.80.0040.0144.75
4.4.70.0030.0154.75
4.4.60.0040.0144.76
4.4.50.0020.0164.77
4.4.40.0040.0244.71
4.4.30.0010.0174.76
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0030.0244.76
4.3.110.0020.0164.66
4.3.100.0020.0154.66
4.3.90.0060.0114.63
4.3.80.0030.0244.59
4.3.70.0060.0114.63
4.3.60.0040.0194.63
4.3.50.0010.0234.63
4.3.40.0050.0294.54
4.3.30.0020.0213.31
4.3.20.0040.0193.28
4.3.10.0010.0163.24
4.3.00.0200.01018.56

preferences:
55.29 ms | 401 KiB | 5 Q