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#collapse14

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.0110.00416.88
8.3.50.0150.00619.73
8.3.40.0110.00718.84
8.3.30.0070.00719.04
8.3.20.0080.00020.29
8.3.10.0070.00021.78
8.3.00.0080.00019.38
8.2.180.0090.00618.16
8.2.170.0070.01422.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0080.00021.10
8.2.110.0060.00320.39
8.2.100.0070.00418.22
8.2.90.0050.00219.41
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0040.00418.05
8.2.50.0000.01018.07
8.2.40.0040.00418.16
8.2.30.0000.00718.13
8.2.20.0040.00417.82
8.2.10.0000.00818.04
8.2.00.0040.00417.73
8.1.280.0130.00725.92
8.1.270.0030.00523.96
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00023.91
8.1.230.0070.00419.08
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0060.00317.35
8.1.180.0050.00318.10
8.1.170.0040.00418.69
8.1.160.0040.00422.00
8.1.150.0000.00718.80
8.1.140.0040.00417.37
8.1.130.0000.00717.83
8.1.120.0070.00017.54
8.1.110.0000.00717.34
8.1.100.0000.00717.37
8.1.90.0040.00417.49
8.1.80.0040.00417.52
8.1.70.0070.00017.46
8.1.60.0080.00017.60
8.1.50.0090.00017.46
8.1.40.0000.00817.53
8.1.30.0060.00317.61
8.1.20.0000.00717.66
8.1.10.0060.00317.48
8.1.00.0070.00017.43
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0000.00718.45
8.0.270.0000.00817.27
8.0.260.0060.00017.25
8.0.250.0070.00017.05
8.0.240.0030.00316.99
8.0.230.0030.00317.02
8.0.220.0070.00016.88
8.0.210.0070.00017.01
8.0.200.0040.00417.04
8.0.190.0040.00417.06
8.0.180.0050.00217.02
8.0.170.0050.00317.02
8.0.160.0040.00416.99
8.0.150.0000.00816.90
8.0.140.0040.00416.78
8.0.130.0000.00513.34
8.0.120.0040.00416.83
8.0.110.0040.00416.97
8.0.100.0040.00416.91
8.0.90.0040.00416.91
8.0.80.0100.00616.99
8.0.70.0040.00416.84
8.0.60.0030.00516.82
8.0.50.0080.00016.84
8.0.30.0040.01417.21
8.0.20.0170.01417.40
8.0.10.0030.00517.02
8.0.00.0120.00516.79
7.4.330.0020.00215.00
7.4.320.0040.00416.40
7.4.300.0060.00016.59
7.4.290.0040.00416.48
7.4.280.0030.00516.63
7.4.270.0000.00716.56
7.4.260.0000.00716.42
7.4.250.0000.00716.47
7.4.240.0060.00216.54
7.4.230.0070.00016.41
7.4.220.0030.01716.56
7.4.210.0060.01216.47
7.4.200.0000.00816.54
7.4.160.0100.00616.48
7.4.150.0120.00617.40
7.4.140.0080.00817.86
7.4.130.0110.00716.57
7.4.120.0100.00716.66
7.4.110.0060.01316.63
7.4.100.0090.00516.65
7.4.90.0140.00316.55
7.4.80.0120.00919.39
7.4.70.0040.01516.44
7.4.60.0150.00316.53
7.4.50.0000.00816.20
7.4.40.0110.00516.60
7.4.30.0090.00916.61
7.4.00.0070.00715.09
7.3.330.0020.00213.00
7.3.320.0020.00213.15
7.3.310.0030.00316.30
7.3.300.0030.00316.31
7.3.290.0000.01516.25
7.3.280.0080.00616.32
7.3.270.0060.01117.40
7.3.260.0170.00316.55
7.3.250.0130.00816.55
7.3.240.0100.00716.50
7.3.230.0080.00816.39
7.3.210.0110.00716.42
7.3.200.0170.00319.39
7.3.190.0040.01116.39
7.3.180.0060.00916.56
7.3.170.0160.00316.50
7.3.160.0120.00316.42
7.3.10.0110.00416.82
7.3.00.0030.00916.80
7.2.330.0000.01816.29
7.2.320.0100.00716.44
7.2.310.0060.01216.69
7.2.300.0060.01116.67
7.2.290.0130.00316.66
7.2.130.0080.00416.85
7.2.120.0040.00716.76
7.2.110.0070.00716.62
7.2.100.0040.00817.11
7.2.90.0060.00316.80
7.2.80.0030.00517.07
7.2.70.0040.00816.78
7.2.60.0020.01416.92
7.2.50.0050.00717.08
7.2.40.0030.00916.89
7.2.30.0070.00616.89
7.2.20.0060.00316.64
7.2.10.0060.00616.79
7.2.00.0040.00918.15
7.1.250.0000.00815.76
7.1.240.0030.00715.68
7.1.230.0040.00415.47
7.1.220.0040.00415.64
7.1.210.0080.00415.89
7.1.200.0060.00715.67
7.1.190.0030.01015.78
7.1.180.0060.00315.65
7.1.170.0100.00015.43
7.1.160.0070.00715.62
7.1.150.0050.00515.82
7.1.140.0070.00715.84
7.1.130.0030.01115.41
7.1.120.0060.00315.45
7.1.110.0060.00315.55
7.1.100.0060.00616.75
7.1.90.0070.00316.00
7.1.80.0100.00015.51
7.1.70.0050.00516.49
7.1.60.0080.00817.55
7.1.50.0050.01016.33
7.1.40.0070.00415.75
7.1.30.0030.01015.32
7.1.20.0060.00315.44
7.1.10.0070.00715.61
7.1.00.0050.03919.04
7.0.330.0040.00815.30
7.0.320.0070.00715.27
7.0.310.0000.01315.23
7.0.300.0000.01015.35
7.0.290.0040.00415.29
7.0.280.0030.00715.26
7.0.270.0030.00615.41
7.0.260.0000.01415.26
7.0.250.0000.00915.16
7.0.240.0070.00315.37
7.0.230.0090.00015.17
7.0.220.0000.01215.25
7.0.210.0040.00415.36
7.0.200.0020.01015.89
7.0.190.0070.00715.15
7.0.180.0030.00515.26
7.0.170.0040.00415.27
7.0.160.0000.00715.27
7.0.150.0080.00014.98
7.0.140.0080.03618.72
7.0.130.0060.00315.25
7.0.120.0040.00415.42
7.0.110.0030.00615.23
7.0.100.0040.00415.28
7.0.90.0050.00515.13
7.0.80.0090.00315.00
7.0.70.0060.00915.02
7.0.60.0050.04717.60
7.0.50.0040.04516.68
7.0.40.0110.02116.73
7.0.30.0150.03116.76
7.0.20.0220.02216.76
7.0.10.0070.02216.80
7.0.00.0070.04416.74
5.6.380.0110.00014.29
5.6.370.0040.00814.11
5.6.360.0070.00014.17
5.6.350.0060.00614.00
5.6.340.0060.00914.45
5.6.330.0030.00714.36
5.6.320.0110.00414.25
5.6.310.0080.00414.11
5.6.300.0060.00614.14
5.6.290.0100.00314.44
5.6.280.0050.03717.63
5.6.270.0040.00814.25
5.6.260.0030.01014.50
5.6.250.0060.00314.24
5.6.240.0060.00914.42
5.6.230.0030.00714.12
5.6.220.0040.00414.07
5.6.210.0030.03017.51
5.6.200.0050.02516.01
5.6.190.0060.04417.25
5.6.180.0190.03817.38
5.6.170.0130.02617.39
5.6.160.0030.04917.21
5.6.150.0080.04016.04
5.6.140.0100.03816.12
5.6.130.0070.04216.38
5.6.120.0050.04717.65
5.6.110.0020.02917.63
5.6.100.0100.04317.78
5.6.90.0070.04617.55
5.6.80.0080.04517.41
5.6.70.0080.00414.35
5.6.60.0040.00814.07
5.6.50.0000.01714.01
5.6.40.0060.00614.46
5.6.30.0030.01514.14
5.6.20.0080.00414.16
5.6.10.0000.00914.01
5.6.00.0070.00714.18
5.5.380.0000.00710.99
5.5.370.0000.00711.01
5.5.360.0000.00611.14
5.5.350.0160.03815.64
5.5.340.0070.04014.44
5.5.330.0030.04515.52
5.5.320.0070.04015.65
5.5.310.0130.03715.47
5.5.300.0060.03714.38
5.5.290.0060.04114.35
5.5.280.0080.02316.02
5.5.270.0070.03315.88
5.5.260.0040.02215.77
5.5.250.0050.04715.62
5.5.240.0070.04215.54
5.5.230.0030.00610.45
5.5.220.0030.00310.70
5.5.210.0030.00310.79
5.5.200.0060.00610.81
5.5.190.0000.01110.83
5.5.180.0000.00810.96
5.5.170.0070.00710.61
5.5.160.0040.00811.06
5.5.150.0030.00610.91
5.5.140.0030.00710.61
5.5.130.0070.00710.88
5.5.120.0000.01110.68
5.5.110.0030.00911.05
5.5.100.0080.00010.90
5.5.90.0060.00610.84
5.5.80.0030.00811.16
5.5.70.0060.00611.00
5.5.60.0060.00010.89
5.5.50.0000.01311.11
5.5.40.0040.00810.98
5.5.30.0060.00610.83
5.5.20.0060.00011.15
5.5.10.0070.00411.00
5.5.00.0030.01011.02
5.4.450.0410.03215.12
5.4.440.0380.03214.99
5.4.430.0420.02715.34
5.4.420.0350.03015.26
5.4.410.0400.02915.11
5.4.400.0390.02715.05
5.4.390.0400.03114.93
5.4.380.0170.03014.73
5.4.370.0170.03414.70
5.4.360.0150.03114.71
5.4.350.0150.03214.81
5.4.340.0130.04114.76
5.4.330.0040.00810.85
5.4.320.0050.02111.59
5.4.310.0080.02511.66
5.4.300.0020.02311.73
5.4.290.0050.02711.67
5.4.280.0050.02011.63
5.4.270.0050.02011.61
5.4.260.0070.01811.57
5.4.250.0060.02211.56
5.4.240.0020.02511.64
5.4.230.0050.02311.58
5.4.220.0070.01911.68
5.4.210.0040.02211.53
5.4.200.0060.02011.63
5.4.190.0070.02011.75
5.4.180.0040.02311.71
5.4.170.0050.01911.52
5.4.160.0030.02311.66
5.4.150.0060.02011.74
5.4.140.0070.02211.50
5.4.130.0030.02411.44
5.4.120.0030.02211.53
5.4.110.0040.02311.43
5.4.100.0020.02111.39
5.4.90.0070.01911.44
5.4.80.0070.02011.53
5.4.70.0040.02211.37
5.4.60.0060.01911.50
5.4.50.0050.02011.38
5.4.40.0070.01811.51
5.4.30.0040.02111.42
5.4.20.0040.02211.45
5.4.10.0040.02111.37
5.4.00.0050.02111.03
5.3.290.0030.02511.55
5.3.280.0060.02211.54
5.3.270.0050.02311.48
5.3.260.0050.02111.57
5.3.250.0040.02211.49
5.3.240.0080.02111.52
5.3.230.0040.02311.41
5.3.220.0040.02211.54
5.3.210.0020.02711.43
5.3.200.0080.02311.52
5.3.190.0060.02611.49
5.3.180.0080.02011.58
5.3.170.0070.02011.56
5.3.160.0060.02211.46
5.3.150.0040.02111.60
5.3.140.0080.02311.57
5.3.130.0100.02811.51
5.3.120.0040.04011.59
5.3.110.0080.02911.55
5.3.100.0050.03011.25
5.3.90.0100.02711.27
5.3.80.0060.02511.18
5.3.70.0050.02711.16
5.3.60.0060.02011.21
5.3.50.0060.01811.16
5.3.40.0050.02411.14
5.3.30.0050.02411.13
5.3.20.0050.02011.04
5.3.10.0070.01610.91
5.3.00.0060.02210.87
5.2.170.0030.0189.62
5.2.160.0040.0169.62
5.2.150.0030.0179.62
5.2.140.0040.0179.62
5.2.130.0030.0189.59
5.2.120.0040.0229.60
5.2.110.0040.0169.60
5.2.100.0070.0159.60
5.2.90.0030.0179.60
5.2.80.0030.0189.60
5.2.70.0020.0189.60
5.2.60.0040.0179.57
5.2.50.0040.0169.56
5.2.40.0020.0199.54
5.2.30.0020.0199.53
5.2.20.0050.0149.53
5.2.10.0030.0209.49
5.2.00.0030.0169.42
5.1.60.0030.0139.06
5.1.50.0030.0159.06
5.1.40.0040.0209.05
5.1.30.0040.0159.22
5.1.20.0040.0159.24
5.1.10.0030.0159.10
5.1.00.0030.0169.10
5.0.50.0020.0138.34
5.0.40.0050.0098.27
5.0.30.0040.0178.17
5.0.20.0020.0128.16
5.0.10.0040.0108.15
5.0.00.0040.0178.14
4.4.90.0020.0107.42
4.4.80.0010.0107.41
4.4.70.0040.0087.41
4.4.60.0010.0117.41
4.4.50.0040.0097.42
4.4.40.0010.0167.38
4.4.30.0020.0117.41
4.4.20.0010.0127.45
4.4.10.0020.0127.45
4.4.00.0020.0137.41
4.3.110.0040.0097.36
4.3.100.0020.0107.36
4.3.90.0020.0127.35
4.3.80.0030.0147.32
4.3.70.0040.0077.34
4.3.60.0020.0107.34
4.3.50.0010.0117.34
4.3.40.0010.0167.30
4.3.30.0030.0096.67
4.3.20.0020.0106.66
4.3.10.0020.0136.64
4.3.00.0030.0168.96

preferences:
39.15 ms | 400 KiB | 5 Q