3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <form method='POST'> <h2>Please input your name:</h2> <input type="text" name="name"> <input type="submit" value="Submit Name"> </form> <?php //Retrieve name from query string and store to a local variable $name = $_POST['name']; echo "<h3> Hello $name </h3>"; ?> </body> </html> - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#EDITOR

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.75
8.3.50.0140.00521.97
8.3.40.0090.00918.79
8.3.30.0190.00319.02
8.3.20.0050.00220.33
8.3.10.0040.00423.74
8.3.00.0050.00319.68
8.2.180.0070.01418.66
8.2.170.0000.01422.96
8.2.160.0100.00720.57
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0110.00020.90
8.2.110.0070.00320.51
8.2.100.0120.00019.77
8.2.90.0050.00318.11
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0030.00618.05
8.2.50.0060.00318.07
8.2.40.0040.00420.07
8.2.30.0030.00418.32
8.2.20.0000.00817.86
8.2.10.0080.00018.04
8.2.00.0000.00717.88
8.1.280.0100.00325.92
8.1.270.0030.00523.84
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00422.13
8.1.230.0070.00320.94
8.1.220.0050.00317.80
8.1.210.0000.00818.92
8.1.200.0030.00717.35
8.1.190.0030.00517.11
8.1.180.0000.00818.10
8.1.170.0000.00918.65
8.1.160.0000.00821.89
8.1.150.0040.00418.70
8.1.140.0000.00717.37
8.1.130.0000.00717.75
8.1.120.0040.00417.34
8.1.110.0040.00417.43
8.1.100.0070.00017.43
8.1.90.0040.00417.45
8.1.80.0000.00717.47
8.1.70.0040.00417.46
8.1.60.0040.00417.63
8.1.50.0030.00517.57
8.1.40.0040.00417.41
8.1.30.0040.00417.68
8.1.20.0040.00417.48
8.1.10.0080.00017.60
8.1.00.0040.00417.37
8.0.300.0040.00420.14
8.0.290.0020.00516.75
8.0.280.0000.00818.45
8.0.270.0080.00017.35
8.0.260.0000.00617.22
8.0.250.0070.00017.04
8.0.240.0040.00417.05
8.0.230.0000.00717.02
8.0.220.0000.00616.86
8.0.210.0000.00616.96
8.0.200.0060.00017.00
8.0.190.0080.00017.05
8.0.180.0040.00417.00
8.0.170.0030.00516.91
8.0.160.0040.00416.95
8.0.150.0070.00016.79
8.0.140.0050.00516.97
8.0.130.0050.00013.38
8.0.120.0050.00316.85
8.0.110.0000.00717.05
8.0.100.0000.00816.96
8.0.90.0000.00816.93
8.0.80.0080.01116.84
8.0.70.0040.00417.00
8.0.60.0000.00816.86
8.0.50.0020.00516.83
8.0.30.0100.01216.98
8.0.20.0120.00817.40
8.0.10.0000.00717.06
8.0.00.0040.01616.81
7.4.330.0050.00015.00
7.4.320.0000.00716.52
7.4.300.0000.00616.52
7.4.290.0030.00316.65
7.4.280.0040.00416.48
7.4.270.0030.00316.50
7.4.260.0090.00016.59
7.4.250.0050.00316.48
7.4.240.0050.00216.61
7.4.230.0000.00716.36
7.4.220.0120.00616.63
7.4.210.0060.00916.55
7.4.200.0040.00416.66
7.4.160.0160.00016.64
7.4.150.0180.00017.40
7.4.140.0100.00717.86
7.4.130.0120.00716.58
7.4.120.0050.01016.53
7.4.110.0130.00316.68
7.4.100.0150.00816.48
7.4.90.0100.00616.53
7.4.80.0120.01119.39
7.4.70.0060.01316.36
7.4.60.0130.00416.52
7.4.50.0030.00616.46
7.4.40.0120.00616.69
7.4.30.0060.00916.60
7.4.00.0070.00714.64
7.3.330.0030.00413.01
7.3.320.0000.00813.06
7.3.310.0030.00316.28
7.3.300.0030.00416.26
7.3.290.0070.00716.27
7.3.280.0120.00716.30
7.3.270.0070.01017.40
7.3.260.0030.01416.31
7.3.250.0120.00516.33
7.3.240.0100.00616.48
7.3.230.0070.01416.45
7.3.210.0070.01416.52
7.3.200.0130.00319.39
7.3.190.0130.00316.40
7.3.180.0060.00916.57
7.3.170.0140.00316.27
7.3.160.0110.00516.42
7.3.120.0030.01114.94
7.2.330.0070.01016.37
7.2.320.0150.00816.62
7.2.310.0100.01016.63
7.2.300.0100.00716.31
7.2.290.0090.00616.59
7.2.00.0100.00319.61
7.1.100.0060.00618.08
7.1.70.0000.00716.88
7.1.60.0100.01619.70
7.1.50.0100.01416.90
7.1.00.0130.06322.51
7.0.200.0050.00216.82
7.0.140.0070.06721.96
7.0.60.0100.08319.98
7.0.50.0030.06717.82
7.0.40.0070.05020.02
7.0.30.0430.05320.16
7.0.20.0300.08020.18
7.0.10.0100.08320.09
7.0.00.0000.06020.04
5.6.280.0030.07321.04
5.6.210.0000.09020.68
5.6.200.0100.07318.15
5.6.190.0100.07320.57
5.6.180.0130.07720.64
5.6.170.0330.06020.54
5.6.160.0000.04320.47
5.6.150.0230.04018.25
5.6.140.0030.04018.07
5.6.130.0030.07718.18
5.6.120.0070.04020.89
5.6.110.0070.06721.04
5.6.100.0070.05720.98
5.6.90.0030.08320.94
5.6.80.0070.06720.34
5.5.350.4070.05020.39
5.5.340.0030.06718.02
5.5.330.0100.08020.21
5.5.320.0330.03720.29
5.5.310.0400.07320.23
5.5.300.0170.07017.92
5.5.290.0130.06017.92
5.5.280.0000.07320.88
5.5.270.0130.08020.71
5.5.260.0230.02720.86
5.5.250.0070.07720.76
5.5.240.0130.07720.16
5.4.450.0470.06719.26
5.4.440.0370.04319.39
5.4.430.0370.04019.41
5.4.420.0270.04319.56
5.4.410.0300.04319.33
5.4.400.0430.03019.25
5.4.390.0330.04318.81
5.4.380.0400.03019.25
5.4.370.0400.03319.13
5.4.360.0270.04318.93
5.4.350.0430.03319.20
5.4.340.0330.03719.13
5.4.320.0370.04018.91
5.4.310.0330.04319.24
5.4.300.0370.03318.88
5.4.290.0330.03719.08
5.4.280.0330.03718.92
5.4.270.0400.03719.08
5.4.260.0470.03719.25
5.4.250.0330.04019.07
5.4.240.0300.05019.23
5.4.230.0370.04319.25
5.4.220.0330.04319.15
5.4.210.0330.04019.11
5.4.200.0400.04019.21
5.4.190.0330.04018.91
5.4.180.0370.04319.12
5.4.170.0300.04019.12
5.4.160.0400.05719.06
5.4.150.0400.03318.89
5.4.140.0330.03316.16
5.4.130.0500.03016.44
5.4.120.0400.03316.41
5.4.110.0400.03016.45
5.4.100.0330.04016.50
5.4.90.0500.05716.48
5.4.80.0370.03316.46
5.4.70.0470.03316.46
5.4.60.0430.04716.39
5.4.50.0370.03716.45
5.4.40.0300.04016.36
5.4.30.0330.03716.20
5.4.20.0500.03316.03
5.4.10.0400.04016.45
5.4.00.0400.06315.68
5.3.290.0430.03314.64
5.3.280.0400.06014.44
5.3.270.0400.04014.54
5.3.260.0330.04314.45
5.3.250.0400.06714.45
5.3.240.0400.04014.47
5.3.230.0500.03314.54
5.3.220.0400.03314.50
5.3.210.0430.04014.51
5.3.200.0470.05714.40
5.3.190.0370.05714.40
5.3.180.0430.05314.41
5.3.170.0500.03014.40
5.3.160.0430.04714.50
5.3.150.0400.03014.49
5.3.140.0300.04314.64
5.3.130.0330.04314.38
5.3.120.0430.05314.41
5.3.110.0570.06014.49
5.3.100.0400.07013.88
5.3.90.0330.04713.85
5.3.80.0330.03713.80
5.3.70.0330.04313.96
5.3.60.0470.06313.91
5.3.50.0300.04713.77
5.3.40.0370.04313.89
5.3.30.0400.03013.68
5.3.20.0330.04013.66
5.3.10.0300.03713.61
5.3.00.0330.03313.44
5.2.170.0330.03311.08
5.2.160.0270.03710.98
5.2.150.0330.02311.19
5.2.140.0330.02311.08
5.2.130.0300.03710.95
5.2.120.0270.03011.15
5.2.110.0230.03310.93
5.2.100.0300.03311.15
5.2.90.0370.03010.94
5.2.80.0330.03311.00
5.2.70.0370.02311.11
5.2.60.0270.03310.88
5.2.50.0230.03311.03
5.2.40.0230.03311.04
5.2.30.0270.03310.80
5.2.20.0200.03010.89
5.2.10.0270.02310.77
5.2.00.0300.02010.72
5.1.60.0230.02310.07
5.1.50.0200.02710.08
5.1.40.0270.0279.84
5.1.30.0270.03710.19
5.1.20.0330.04310.50
5.1.10.0230.02710.04
5.1.00.0300.01710.04
5.0.50.0130.0239.71
5.0.40.0130.0179.71
5.0.30.0130.0339.71
5.0.20.0130.0179.71
5.0.10.0170.0139.71
5.0.00.0070.0339.71
4.4.90.0230.0239.71
4.4.80.0100.0179.71
4.4.70.0130.0179.71
4.4.60.0100.0209.71
4.4.50.0100.0209.71
4.4.40.0170.0179.71
4.4.30.0130.0139.71
4.4.20.0170.0139.71
4.4.10.0100.0179.71
4.4.00.0130.0239.71
4.3.110.0130.0209.71
4.3.100.0170.0139.71
4.3.90.0130.0139.71
4.3.80.0130.0279.71
4.3.70.0130.0139.71
4.3.60.0170.0109.71
4.3.50.0100.0209.71
4.3.40.0130.0279.71
4.3.30.0030.0179.71
4.3.20.0070.0209.71
4.3.10.0100.0139.71
4.3.00.0030.0209.71

preferences:
41.34 ms | 401 KiB | 5 Q