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.IDfT6uoI.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.60.0120.00918.43
8.3.50.0130.00321.94
8.3.40.0120.00318.86
8.3.30.0100.00319.03
8.3.20.0040.00420.29
8.3.10.0040.00423.54
8.3.00.0000.00720.84
8.2.180.0180.00318.14
8.2.170.0110.00322.96
8.2.160.0100.01020.37
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00722.25
8.2.110.0040.00422.27
8.2.100.0030.00817.84
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0040.00419.88
8.2.30.0020.00518.36
8.2.20.0050.00317.86
8.2.10.0000.00818.04
8.2.00.0040.00417.81
8.1.280.0100.01025.92
8.1.270.0000.00821.91
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.07
8.1.230.0040.00719.16
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0090.00017.35
8.1.190.0050.00317.23
8.1.180.0030.00518.88
8.1.170.0030.00518.49
8.1.160.0070.00021.97
8.1.150.0070.00018.59
8.1.140.0000.00817.37
8.1.130.0000.00717.75
8.1.120.0040.00417.47
8.1.110.0040.00717.37
8.1.100.0000.00717.42
8.1.90.0030.00317.35
8.1.80.0040.00417.36
8.1.70.0000.00717.42
8.1.60.0040.00417.64
8.1.50.0000.00817.36
8.1.40.0080.00017.41
8.1.30.0030.00517.55
8.1.20.0030.00617.64
8.1.10.0040.00417.62
8.1.00.0040.00417.53
8.0.300.0070.00018.77
8.0.290.0000.00817.04
8.0.280.0080.00018.36
8.0.270.0070.00017.23
8.0.260.0060.00017.21
8.0.250.0070.00017.03
8.0.240.0030.00316.98
8.0.230.0030.00316.87
8.0.220.0030.00317.03
8.0.210.0000.00716.84
8.0.200.0000.00716.93
8.0.190.0000.00817.01
8.0.180.0040.00416.98
8.0.170.0000.00817.06
8.0.160.0000.00716.90
8.0.150.0000.00716.94
8.0.140.0030.00616.92
8.0.130.0000.00513.34
8.0.120.0000.00716.98
8.0.110.0040.00416.92
8.0.100.0000.00916.84
8.0.90.0050.00216.82
8.0.80.0030.01716.92
8.0.70.0040.00416.91
8.0.60.0070.00017.00
8.0.50.0050.00216.93
8.0.30.0090.01017.17
8.0.20.0100.01017.40
8.0.10.0000.00717.06
8.0.00.0180.00516.95
7.4.330.0040.00415.00
7.4.320.0060.00016.54
7.4.300.0040.00416.44
7.4.290.0070.00016.57
7.4.280.0060.00316.63
7.4.270.0030.00316.49
7.4.260.0080.00016.61
7.4.250.0020.00516.57
7.4.240.0050.00216.57
7.4.230.0040.00416.37
7.4.220.0030.01416.64
7.4.210.0050.00916.57
7.4.200.0030.00316.25
7.4.190.0030.00316.48
7.4.160.0060.00916.28
7.4.150.0060.01217.40
7.4.140.0070.01017.86
7.4.130.0020.01916.55
7.4.120.0070.01016.54
7.4.110.0030.01316.60
7.4.100.0140.00316.52
7.4.90.0100.00616.59
7.4.80.0100.02619.39
7.4.70.0070.01016.45
7.4.60.0070.01016.36
7.4.50.0040.00416.44
7.4.40.0060.01416.61
7.4.30.0140.00716.36
7.4.00.0000.01715.11
7.3.330.0000.00513.00
7.3.320.0000.00513.21
7.3.310.0070.00016.14
7.3.300.0000.00716.13
7.3.290.0110.00716.28
7.3.280.0080.00816.24
7.3.270.0100.00717.40
7.3.260.0130.00616.51
7.3.250.0100.00816.36
7.3.240.0060.01116.57
7.3.230.0130.00316.39
7.3.210.0060.00916.65
7.3.200.0120.00419.39
7.3.190.0080.01116.52
7.3.180.0140.00316.50
7.3.170.0060.00916.34
7.3.160.0120.00916.42
7.3.120.0090.00615.07
7.3.10.0000.01316.71
7.3.00.0110.00016.52
7.2.330.0100.01316.67
7.2.320.0060.01116.54
7.2.310.0040.01816.61
7.2.300.0000.01516.54
7.2.290.0070.01116.25
7.2.130.0040.00716.57
7.2.120.0070.00416.95
7.2.110.0030.00816.72
7.2.100.0030.01016.51
7.2.90.0070.00717.07
7.2.80.0080.00816.55
7.2.70.0000.01316.53
7.2.60.0030.01016.71
7.2.50.0030.00716.93
7.2.40.0000.01016.86
7.2.30.0130.00317.05
7.2.20.0030.00917.02
7.2.10.0040.00816.79
7.2.00.0090.00718.08
7.1.250.0070.01015.70
7.1.100.0030.00818.07
7.1.70.0100.00317.14
7.1.60.0110.00719.46
7.1.50.0180.00916.84
7.1.00.0070.07322.32
7.0.200.0000.00716.40
7.0.140.0000.07722.16
7.0.60.0030.04019.93
7.0.50.0070.04017.77
7.0.40.0130.08320.12
7.0.30.0270.07720.17
7.0.20.0300.04720.09
7.0.10.0030.04320.22
7.0.00.0030.04020.00
5.6.280.0070.07021.07
5.6.210.0070.06320.66
5.6.200.0030.04718.15
5.6.190.0130.06720.43
5.6.180.0200.06020.40
5.6.170.0230.06720.48
5.6.160.0030.04320.54
5.6.150.0000.04318.19
5.6.140.0230.03018.12
5.6.130.0100.06318.18
5.6.120.0070.04021.00
5.6.110.0000.08320.98
5.6.100.0070.05321.00
5.6.90.0270.06320.94
5.6.80.0030.08320.50
5.5.350.4230.04020.30
5.5.340.0100.08018.02
5.5.330.0100.07720.07
5.5.320.0230.04020.41
5.5.310.0400.08020.34
5.5.300.0070.08317.99
5.5.290.0070.07717.90
5.5.280.0070.04320.77
5.5.270.0070.05320.67
5.5.260.0000.08020.75
5.5.250.0100.04720.46
5.5.240.0100.06720.14
5.4.450.0830.05719.35
5.4.440.0830.06319.50
5.4.430.1200.07319.33
5.4.420.1170.05319.51
5.4.410.1270.07019.38
5.4.400.1000.04719.17
5.4.390.0970.05018.93
5.4.380.0130.05318.68
5.4.370.0130.05018.71
5.4.360.0130.06018.63
5.4.350.0070.06018.64
5.4.340.0200.06718.73
5.4.320.0030.03912.46
5.4.310.0040.03912.45
5.4.300.0030.04012.45
5.4.290.0140.04412.45
5.4.280.0080.04912.35
5.4.270.0070.05012.34
5.4.260.0150.04212.34
5.4.250.0120.04712.35
5.4.240.0100.05112.34
5.4.230.0100.05212.34
5.4.220.0140.04412.34
5.4.210.0090.05312.34
5.4.200.0080.05812.34
5.4.190.0120.04912.33
5.4.180.0080.05212.34
5.4.170.0130.05012.35
5.4.160.0090.05112.34
5.4.150.0070.05512.34
5.4.140.0110.07912.02
5.4.130.0150.08012.01
5.4.120.0120.04711.96
5.4.110.0080.05511.96
5.4.100.0060.05311.96
5.4.90.0110.05411.96
5.4.80.0170.04511.96
5.4.70.0110.05511.96
5.4.60.0110.04811.96
5.4.50.0080.05211.96
5.4.40.0110.05111.95
5.4.30.0110.04811.95
5.4.20.0090.06611.95
5.4.10.0100.05211.95
5.4.00.0070.05511.43
5.3.290.0110.04612.80
5.3.280.0130.04412.71
5.3.270.0110.05212.72
5.3.260.0160.06412.72
5.3.250.0100.05212.72
5.3.240.0100.05412.71
5.3.230.0110.05112.71
5.3.220.0070.06212.68
5.3.210.0150.05812.68
5.3.200.0100.06212.68
5.3.190.0300.09912.68
5.3.180.0220.09412.67
5.3.170.0130.04812.67
5.3.160.0130.08012.67
5.3.150.0200.04912.67
5.3.140.0300.11812.66
5.3.130.0130.06212.65
5.3.120.0110.07312.66
5.3.110.0160.06512.66
5.3.100.0160.10012.12
5.3.90.0100.05712.08
5.3.80.0100.04812.08
5.3.70.0100.04912.08
5.3.60.0090.05912.07
5.3.50.0100.07112.00
5.3.40.0130.06012.00
5.3.30.0220.08311.94
5.3.20.0100.04911.72
5.3.10.0090.05311.69
5.3.00.0100.05611.68
5.2.170.0170.0629.17
5.2.160.0080.0469.18
5.2.150.0070.0459.18
5.2.140.0090.0459.18
5.2.130.0080.0459.13
5.2.120.0050.0449.13
5.2.110.0080.0449.14
5.2.100.0080.0459.13
5.2.90.0080.0439.13
5.2.80.0070.0459.13
5.2.70.0130.0469.13
5.2.60.0080.0499.09
5.2.50.0080.0489.05
5.2.40.0120.0389.03
5.2.30.0060.0459.01
5.2.20.0110.0378.99
5.2.10.0080.0388.92
5.2.00.0080.0438.78
5.1.60.0100.0378.07
5.1.50.0060.0408.06
5.1.40.0060.0378.04
5.1.30.0100.0458.39
5.1.20.0060.0398.41
5.1.10.0060.0358.14
5.1.00.0100.0338.14
5.0.50.0080.0256.62
5.0.40.0040.0276.47
5.0.30.0070.0386.29
5.0.20.0070.0236.25
5.0.10.0050.0266.24
5.0.00.0050.0386.23
4.4.90.0050.0214.78
4.4.80.0040.0214.75
4.4.70.0070.0174.75
4.4.60.0050.0204.76
4.4.50.0060.0214.77
4.4.40.0060.0314.71
4.4.30.0050.0204.76
4.4.20.0030.0224.84
4.4.10.0050.0194.85
4.4.00.0040.0304.76
4.3.110.0060.0194.67
4.3.100.0040.0204.66
4.3.90.0060.0184.64
4.3.80.0060.0294.58
4.3.70.0070.0164.63
4.3.60.0040.0204.63
4.3.50.0050.0194.63
4.3.40.0040.0264.54
4.3.30.0020.0193.28
4.3.20.0030.0183.26
4.3.10.0050.0163.22
4.3.00.0170.0237.56

preferences:
39.29 ms | 401 KiB | 5 Q