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#sthash.0fEYbaWK.dpuf

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.40.0090.00618.76
8.3.30.0100.00319.18
8.3.20.0040.00420.38
8.3.10.0040.00423.62
8.3.00.0000.00819.51
8.2.170.0150.00022.96
8.2.160.0090.00920.50
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0070.00720.95
8.2.110.0080.00020.39
8.2.100.0000.01118.22
8.2.90.0040.00419.36
8.2.80.0040.00417.97
8.2.70.0000.01217.50
8.2.60.0000.00818.03
8.2.50.0030.00618.07
8.2.40.0050.00318.05
8.2.30.0030.00619.96
8.2.20.0070.00017.87
8.2.10.0040.00418.12
8.2.00.0000.00917.87
8.1.270.0040.00423.88
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.88
8.1.230.0070.00419.09
8.1.220.0000.00917.74
8.1.210.0000.00718.77
8.1.200.0030.00617.35
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0030.00618.65
8.1.160.0040.00422.02
8.1.150.0050.00318.86
8.1.140.0030.00517.46
8.1.130.0040.00417.82
8.1.120.0040.00417.50
8.1.110.0040.00417.39
8.1.100.0040.00417.36
8.1.90.0070.00017.48
8.1.80.0000.00717.52
8.1.70.0030.00317.35
8.1.60.0040.00417.61
8.1.50.0040.00417.53
8.1.40.0040.00417.47
8.1.30.0040.00417.57
8.1.20.0030.00617.54
8.1.10.0040.00417.55
8.1.00.0030.00617.40
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0000.00718.36
8.0.270.0040.00417.15
8.0.260.0000.00617.26
8.0.250.0030.00316.94
8.0.240.0080.00016.92
8.0.230.0000.00716.96
8.0.220.0000.00717.00
8.0.210.0030.00316.93
8.0.200.0030.00317.01
8.0.190.0000.00717.08
8.0.180.0070.00016.96
8.0.170.0040.00417.04
8.0.160.0050.00316.90
8.0.150.0000.00816.89
8.0.140.0000.00716.82
8.0.130.0030.00313.38
8.0.120.0030.00516.95
8.0.110.0000.00816.86
8.0.100.0040.00416.94
8.0.90.0030.00316.92
8.0.80.0100.01016.89
8.0.70.0000.00716.84
8.0.60.0000.00716.95
8.0.50.0000.00716.91
8.0.30.0140.00517.18
8.0.20.0110.00917.40
8.0.10.0000.00717.11
8.0.00.0060.01216.75
7.4.330.0030.00315.00
7.4.320.0000.00616.54
7.4.300.0060.00016.49
7.4.290.0030.00316.50
7.4.280.0040.00416.57
7.4.270.0030.00616.42
7.4.260.0000.00716.50
7.4.250.0080.00016.45
7.4.240.0000.00716.54
7.4.230.0040.00416.44
7.4.220.0110.00616.45
7.4.210.0060.00616.63
7.4.200.0070.00016.52
7.4.160.0150.00616.66
7.4.150.0060.01217.40
7.4.140.0090.00917.86
7.4.130.0080.00816.55
7.4.120.0090.01116.43
7.4.110.0160.00816.36
7.4.100.0170.00616.42
7.4.90.0030.01916.63
7.4.80.0130.00319.39
7.4.70.0110.00716.50
7.4.60.0140.00316.57
7.4.50.0080.00016.42
7.4.40.0060.00916.48
7.4.30.0140.00016.57
7.4.10.0000.01815.24
7.4.00.0070.01015.09
7.3.330.0050.00013.11
7.3.320.0030.00312.98
7.3.310.0030.00516.31
7.3.300.0000.00716.26
7.3.290.0000.01416.27
7.3.280.0100.00516.28
7.3.270.0090.00917.40
7.3.260.0090.01116.54
7.3.250.0080.00916.56
7.3.240.0070.01016.43
7.3.230.0070.01016.39
7.3.210.0140.00616.51
7.3.200.0070.01019.39
7.3.190.0100.00716.30
7.3.180.0060.01216.54
7.3.170.0030.01416.39
7.3.160.0070.00716.43
7.3.130.0090.00914.61
7.3.120.0090.00315.05
7.3.110.0000.01814.88
7.3.100.0000.01414.65
7.3.90.0060.00615.01
7.3.80.0060.00914.88
7.3.70.0060.00615.00
7.3.60.0090.00014.75
7.3.50.0060.00914.93
7.3.40.0000.01614.81
7.3.30.0110.00414.96
7.3.20.0040.00816.66
7.3.10.0070.00716.70
7.3.00.0080.00516.76
7.2.330.0150.00916.63
7.2.320.0100.01016.69
7.2.310.0100.01016.36
7.2.300.0170.00616.62
7.2.290.0060.01016.36
7.2.260.0060.01015.03
7.2.250.0100.00714.75
7.2.240.0070.00714.66
7.2.230.0100.00715.00
7.2.220.0070.00714.91
7.2.210.0070.01014.96
7.2.200.0040.01114.83
7.2.190.0040.01115.06
7.2.180.0070.00715.06
7.2.170.0090.00315.09
7.2.160.0030.00614.99
7.2.150.0120.00316.92
7.2.140.0080.00816.54
7.2.130.0050.01016.85
7.2.120.0080.00616.92
7.2.110.0060.00816.76
7.2.100.0040.01016.77
7.2.90.0060.01116.78
7.2.80.0080.00716.90
7.2.70.0070.01016.92
7.2.60.0100.00416.81
7.2.50.0080.00616.81
7.2.40.0100.00716.84
7.2.30.0070.00916.92
7.2.20.0100.00416.75
7.2.10.0090.00616.83
7.2.00.0060.00816.72
7.1.330.0000.01415.76
7.1.320.0080.00815.49
7.1.310.0060.00315.82
7.1.300.0100.00715.64
7.1.290.0080.00015.71
7.1.280.0070.00715.39
7.1.270.0120.00015.49
7.1.260.0030.01415.64
7.1.250.0050.00815.79
7.1.240.0030.00915.46
7.1.230.0110.00015.52
7.1.220.0000.01115.71
7.1.210.0070.01015.68
7.1.200.0000.00915.50
7.1.190.0060.00615.66
7.1.180.0060.00615.50
7.1.170.0130.00315.71
7.1.160.0000.01415.70
7.1.150.0080.00015.66
7.1.140.0000.01415.89
7.1.130.0000.01115.81
7.1.120.0000.01515.82
7.1.110.0030.01015.89
7.1.100.0120.00015.62
7.1.90.0040.01215.69
7.1.80.0070.00615.91
7.1.70.0060.00416.42
7.1.60.0040.00716.46
7.1.50.0090.00916.15
7.1.40.0030.00615.61
7.1.30.0070.00715.54
7.1.20.0060.00315.94
7.1.10.0080.00815.76
7.1.00.0050.04018.86
7.0.330.0060.00315.36
7.0.320.0040.01115.59
7.0.310.0090.00615.37
7.0.300.0070.00715.33
7.0.290.0000.00815.48
7.0.280.0000.01615.37
7.0.270.0040.01115.08
7.0.260.0070.00715.17
7.0.250.0070.01015.36
7.0.240.0070.00715.50
7.0.230.0030.01015.16
7.0.220.0030.00615.53
7.0.210.0070.00415.08
7.0.200.0030.00816.15
7.0.190.0030.00615.21
7.0.180.0040.00415.20
7.0.170.0100.00315.31
7.0.160.0000.00915.40
7.0.150.0040.01115.39
7.0.140.0080.03518.66
7.0.130.0030.01215.50
7.0.120.0000.01515.50
7.0.110.0140.00015.22
7.0.100.0060.00615.31
7.0.90.0000.00815.11
7.0.80.0080.00415.16
7.0.70.0040.01115.07
7.0.60.0070.04417.64
7.0.50.0110.04116.59
7.0.40.0090.03216.79
7.0.30.0250.03516.73
7.0.20.0120.03216.77
7.0.10.0150.02816.83
7.0.00.0070.04816.74
5.6.400.0030.01314.32
5.6.390.0060.00914.43
5.6.380.0060.00314.00
5.6.370.0090.00314.14
5.6.360.0030.01314.62
5.6.350.0080.00014.65
5.6.340.0040.01114.38
5.6.330.0080.00014.35
5.6.320.0020.01414.55
5.6.310.0030.01214.25
5.6.300.0060.00914.62
5.6.290.0100.00314.40
5.6.280.0020.04517.79
5.6.270.0090.00314.47
5.6.260.0060.00614.44
5.6.250.0040.00714.47
5.6.240.0060.00314.10
5.6.230.0080.00814.23
5.6.220.0040.00414.02
5.6.210.0060.04617.44
5.6.200.0050.04516.16
5.6.190.0080.02117.38
5.6.180.0230.03517.62
5.6.170.0200.04017.40
5.6.160.0030.02517.48
5.6.150.0080.02516.10
5.6.140.0100.03516.24
5.6.130.0080.02716.32
5.6.120.0070.02517.69
5.6.110.0070.02517.59
5.6.100.0030.04517.62
5.6.90.0050.03717.45
5.6.80.0060.04117.28
5.6.70.1930.01717.17
5.6.60.0070.00714.48
5.6.50.0070.00714.45
5.6.40.0000.01614.38
5.6.30.0060.00614.40
5.6.20.0040.00414.20
5.6.10.0000.01014.07
5.6.00.0040.00814.23
5.5.380.0100.00614.02
5.5.370.0000.01314.19
5.5.360.0070.00313.84
5.5.350.0160.03817.48
5.5.340.0050.03016.06
5.5.330.0050.04317.38
5.5.320.0200.03317.22
5.5.310.0200.04017.08
5.5.300.0020.02316.03
5.5.290.0130.03815.99
5.5.280.0030.02717.60
5.5.270.0080.04517.63
5.5.260.0050.02417.46
5.5.250.0060.02617.41
5.5.240.2180.01617.11
5.5.230.0030.00614.19
5.5.220.0070.00714.15
5.5.210.0060.00814.20
5.5.200.0100.00314.03
5.5.190.0110.00314.05
5.5.180.0000.01214.46
5.5.170.0050.00514.39
5.5.160.0000.01013.99
5.5.150.0070.00314.38
5.5.140.0120.00013.88
5.5.130.0030.00713.95
5.5.120.0070.00714.25
5.5.110.0030.01013.73
5.5.100.0060.00414.18
5.5.90.0030.01014.05
5.5.80.0090.00614.20
5.5.70.0120.00314.21
5.5.60.0030.01014.11
5.5.50.0040.00814.34
5.5.40.0150.00014.48
5.5.30.0090.00314.23
5.5.20.0030.00714.09
5.5.10.0100.00613.80
5.5.00.0030.00614.11
5.4.450.0060.02815.39
5.4.440.0130.02814.93
5.4.430.0100.02415.21
5.4.420.0120.02515.32
5.4.410.0180.01715.02
5.4.400.0170.02314.86
5.4.390.0250.02514.93
5.4.380.0180.03314.69
5.4.370.0160.03014.75
5.4.360.0200.02514.58
5.4.350.0250.02414.66
5.4.340.0270.02014.70
5.4.330.0060.00010.99
5.4.320.0030.02011.52
5.4.310.0060.02011.59
5.4.300.0030.02311.70
5.4.290.0050.02211.55
5.4.280.0060.01811.64
5.4.270.0030.02011.49
5.4.260.0020.02311.73
5.4.250.0100.02011.71
5.4.240.0010.02511.64
5.4.230.0070.02011.63
5.4.220.0050.02311.75
5.4.210.0050.02111.73
5.4.200.0040.02311.57
5.4.190.0030.02211.49
5.4.180.0060.02511.74
5.4.170.0070.02511.64
5.4.160.0100.01611.50
5.4.150.0050.02311.54
5.4.140.0030.02311.55
5.4.130.0040.02011.56
5.4.120.0040.02411.38
5.4.110.0030.02211.41
5.4.100.0040.01911.36
5.4.90.0050.02211.43
5.4.80.0020.02411.44
5.4.70.0050.02011.52
5.4.60.0070.02011.42
5.4.50.0050.01811.43
5.4.40.0040.02311.52
5.4.30.0070.02311.38
5.4.20.0090.01811.35
5.4.10.0040.02011.28
5.4.00.0050.02211.12
5.3.290.0080.03812.80
5.3.280.0090.03312.71
5.3.270.0090.03512.72
5.3.260.0110.04312.72
5.3.250.0120.03512.72
5.3.240.0070.04212.72
5.3.230.0090.03512.71
5.3.220.0070.04212.68
5.3.210.0080.03612.68
5.3.200.0070.03912.68
5.3.190.0050.03712.68
5.3.180.0070.03412.67
5.3.170.0070.03512.67
5.3.160.0030.03912.67
5.3.150.0050.03812.67
5.3.140.0040.03812.66
5.3.130.0050.03812.66
5.3.120.0070.03912.66
5.3.110.0070.04012.66
5.3.100.0030.04012.12
5.3.90.0060.03412.08
5.3.80.0080.03812.08
5.3.70.0040.03712.08
5.3.60.0040.03712.07
5.3.50.0060.03512.00
5.3.40.0070.04012.00
5.3.30.0060.03411.94
5.3.20.0060.03511.72
5.3.10.0020.03711.69
5.3.00.0080.03211.68
5.2.170.0040.0309.18
5.2.160.0060.0289.18
5.2.150.0060.0299.18
5.2.140.0000.0359.18
5.2.130.0050.0329.13
5.2.120.0060.0289.13
5.2.110.0060.0319.14
5.2.100.0050.0279.13
5.2.90.0050.0289.14
5.2.80.0060.0309.13
5.2.70.0060.0359.13
5.2.60.0050.0299.09
5.2.50.0040.0299.05
5.2.40.0030.0319.04
5.2.30.0050.0289.00
5.2.20.0070.0258.99
5.2.10.0050.0278.92
5.2.00.0060.0298.78
5.1.60.0030.0308.06
5.1.50.0050.0238.06
5.1.40.0030.0268.04
5.1.30.0040.0268.39
5.1.20.0040.0258.41
5.1.10.0030.0268.14
5.1.00.0080.0218.14
5.0.50.0030.0206.62
5.0.40.0040.0186.48
5.0.30.0040.0306.29
5.0.20.0040.0186.25
5.0.10.0030.0206.24
5.0.00.0030.0316.23
4.4.90.0040.0144.78
4.4.80.0030.0144.76
4.4.70.0030.0154.76
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0030.0244.71
4.4.30.0020.0164.76
4.4.20.0020.0174.84
4.4.10.0000.0184.85
4.4.00.0020.0254.76
4.3.110.0030.0154.67
4.3.100.0030.0144.67
4.3.90.0010.0164.64
4.3.80.0030.0234.58
4.3.70.0020.0144.63
4.3.60.0050.0114.63
4.3.50.0030.0144.63
4.3.40.0010.0254.54
4.3.30.0020.0163.28
4.3.20.0010.0163.26
4.3.10.0060.0113.22
4.3.00.0070.01718.41

preferences:
48.5 ms | 400 KiB | 5 Q