3v4l.org

run code in 300+ PHP versions simultaneously
<html> <body> <?php if(isset($_POST['send'])){ if(empty($_POST['email']) || empty($_POST['subject']) || empty($_POST['text'])){ echo "all fields must be filled"; } else{ mail("yourmail@x.com", $_POST['subject'], $_POST['text']); echo "mail has been send"; } } ?><form method='post'><input type='text' name='email' placeholder='Email'></br> <input type='text' name='subject' placeholder='Subject'></br> <textarea rows="15" style="width:60%" name="text"> </textarea><br> <input type='submit' name='send' value='Send'></form> </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.0110.00716.50
8.3.50.0080.01317.25
8.3.40.0110.00718.63
8.3.30.0070.00718.84
8.3.20.0080.00018.44
8.3.10.0090.00020.53
8.3.00.0080.00017.63
8.2.180.0100.01016.50
8.2.170.0040.01122.96
8.2.160.0070.00722.10
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0070.00019.83
8.2.110.0030.00622.30
8.2.100.0080.00417.78
8.2.90.0040.00419.34
8.2.80.0030.00619.20
8.2.70.0050.00317.63
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0000.00718.16
8.2.30.0050.00318.13
8.2.20.0030.00517.64
8.2.10.0040.00417.74
8.2.00.0070.00017.75
8.1.280.0070.01025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00019.44
8.1.230.0080.00320.96
8.1.220.0040.00417.74
8.1.210.0000.00819.04
8.1.200.0030.00717.35
8.1.190.0040.00417.55
8.1.180.0080.00018.10
8.1.170.0050.00318.74
8.1.160.0040.00418.74
8.1.150.0000.00718.64
8.1.140.0040.00417.38
8.1.130.0080.00017.73
8.1.120.0050.00317.37
8.1.110.0080.00017.42
8.1.100.0040.00417.45
8.1.90.0050.00317.29
8.1.80.0030.00517.36
8.1.70.0030.00317.38
8.1.60.0040.00417.41
8.1.50.0000.00817.45
8.1.40.0040.00417.41
8.1.30.0000.00817.52
8.1.20.0040.00417.52
8.1.10.0040.00417.53
8.1.00.0040.00417.46
8.0.300.0000.00719.86
8.0.290.0000.00716.63
8.0.280.0030.00318.44
8.0.270.0030.00317.07
8.0.260.0030.00316.76
8.0.250.0000.00816.94
8.0.240.0040.00416.88
8.0.230.0030.00316.89
8.0.220.0050.00316.82
8.0.210.0040.00416.89
8.0.200.0030.00316.87
8.0.190.0080.00016.90
8.0.180.0080.00016.89
8.0.170.0040.00716.78
8.0.160.0030.00416.78
8.0.150.0070.00016.80
8.0.140.0030.00516.70
8.0.130.0000.00513.31
8.0.120.0040.00416.77
8.0.110.0000.00716.82
8.0.100.0030.00516.82
8.0.90.0000.00716.65
8.0.80.0130.00316.88
8.0.70.0080.00016.84
8.0.60.0000.00816.80
8.0.50.0030.00516.79
8.0.30.0060.01217.07
8.0.20.0240.00516.94
8.0.10.0040.00416.83
8.0.00.0080.01016.77
7.4.330.0020.00212.94
7.4.320.0000.00616.51
7.4.300.0000.00616.32
7.4.290.0080.00016.48
7.4.280.0060.00316.55
7.4.270.0000.00816.38
7.4.260.0060.00013.27
7.4.250.0040.00416.45
7.4.240.0030.00516.43
7.4.230.0030.00316.50
7.4.220.0160.00916.39
7.4.210.0050.01016.50
7.4.200.0070.00016.27
7.4.190.0000.00816.40
7.4.160.0060.00916.45
7.4.150.0000.01716.26
7.4.140.0170.00516.41
7.4.130.0110.00616.46
7.4.120.0050.01216.52
7.4.110.0130.00716.48
7.4.100.0030.01316.28
7.4.90.0060.01216.51
7.4.80.0030.02016.53
7.4.70.0060.01216.38
7.4.60.0120.01116.53
7.4.50.0000.00916.37
7.4.40.0070.00516.31
7.4.30.0060.01016.42
7.4.00.0050.00515.09
7.3.330.0000.00613.17
7.3.320.0030.00313.03
7.3.310.0040.00416.10
7.3.300.0000.00716.14
7.3.290.0120.00416.15
7.3.280.0060.00916.19
7.3.270.0120.01216.35
7.3.260.0140.00616.38
7.3.250.0090.01116.27
7.3.240.0140.00316.07
7.3.230.0050.01116.14
7.3.210.0100.00716.41
7.3.200.0080.00819.39
7.3.190.0130.00916.29
7.3.180.0090.00616.14
7.3.170.0080.01116.36
7.3.160.0060.00916.27
7.3.120.0100.00314.86
7.3.10.0070.00716.30
7.3.00.0230.00816.69
7.2.330.0150.00916.61
7.2.320.0110.00616.58
7.2.310.0060.01416.58
7.2.300.0060.01216.55
7.2.290.0090.00616.57
7.2.130.0150.00016.64
7.2.120.0200.00416.41
7.2.110.0050.01116.67
7.2.100.0040.01216.58
7.2.90.0090.00616.53
7.2.80.0100.00316.77
7.2.70.0070.00416.42
7.2.60.0070.01016.88
7.2.50.0030.01216.59
7.2.40.0070.00716.77
7.2.30.0080.00316.82
7.2.20.0070.00716.54
7.2.10.0050.00916.51
7.2.00.0070.00617.95
7.1.250.0100.00715.76
7.1.200.0000.01015.74
7.1.100.0080.00417.87
7.1.70.0030.00717.14
7.1.60.0040.01419.40
7.1.50.0060.01616.79
7.1.00.0070.03022.30
7.0.200.0370.00314.38
7.0.140.0000.07722.00
7.0.120.0000.07722.01
7.0.60.0130.08019.82
7.0.50.0100.04317.80
7.0.40.0100.05019.91
7.0.30.0330.03720.30
7.0.20.0370.04720.30
7.0.10.0030.04320.00
7.0.00.0100.04020.16
5.6.280.0030.07321.11
5.6.210.0030.08720.75
5.6.200.0000.04718.23
5.6.190.0130.07320.27
5.6.180.3730.03720.57
5.6.170.0270.04720.71
5.6.160.0030.04720.51
5.6.150.0000.04018.13
5.6.140.0100.07718.10
5.6.130.0070.08018.16
5.6.120.0030.04321.03
5.6.110.0100.07721.00
5.6.100.0200.07320.98
5.6.90.0070.08320.88
5.6.80.0130.07020.39
5.6.70.4670.03720.35
5.5.350.0000.08020.41
5.5.340.0070.05018.02
5.5.330.0030.04320.20
5.5.320.0130.08320.30
5.5.310.0230.06320.34
5.5.300.0070.06017.89
5.5.290.0170.03717.91
5.5.280.0000.04320.84
5.5.270.0200.07020.76
5.5.260.0130.08320.66
5.5.250.0070.05320.61
5.5.240.0000.08320.13
5.4.450.0100.07719.11
5.4.440.0130.06719.40
5.4.430.0100.07019.29
5.4.420.0030.04719.23
5.4.410.0070.04019.00
5.4.400.0170.05318.79
5.4.390.0070.05019.14
5.4.380.0070.07019.16
5.4.370.0100.06319.08
5.4.360.0100.07319.18
5.4.350.0030.06719.13
5.4.340.0070.05319.18
5.4.320.0070.07718.92
5.4.310.0100.06719.18
5.4.300.0030.04319.17
5.4.290.0030.04319.18
5.4.280.0030.07319.00
5.4.270.0030.07718.91
5.4.260.0070.07019.14
5.4.250.0070.07718.87
5.4.240.0070.04719.11
5.4.230.0070.07719.13
5.4.220.0030.04019.07
5.4.210.0100.06718.77
5.4.200.0030.08019.07
5.4.190.0030.08018.79
5.4.180.0070.07318.91
5.4.170.0000.05319.10
5.4.160.0070.04018.89
5.4.150.0070.06319.05
5.4.140.0130.07016.48
5.4.130.0030.07316.24
5.4.120.0000.08016.25
5.4.110.0100.04316.27
5.4.100.0100.07316.35
5.4.90.0030.08016.32
5.4.80.0170.06716.26
5.4.70.0000.08016.39
5.4.60.0070.04716.17
5.4.50.0070.04016.27
5.4.40.0130.06316.24
5.4.30.0070.07016.23
5.4.20.0130.06316.36
5.4.10.0070.05016.34
5.4.00.0030.04015.97
5.3.290.0030.06014.63
5.3.280.0030.04314.56
5.3.270.0030.07714.57
5.3.260.0170.06714.48
5.3.250.0030.05014.50
5.3.240.0070.05314.55
5.3.230.0070.04314.68
5.3.220.0000.04314.49
5.3.210.0100.07314.46
5.3.200.0130.04014.38
5.3.190.0030.06314.56
5.3.180.0130.07314.48
5.3.170.0100.05714.50
5.3.160.0030.06714.38
5.3.150.0070.07314.46
5.3.140.0100.04314.47
5.3.130.0130.07014.50
5.3.120.0100.04314.48
5.3.110.0170.06714.63
5.3.100.0070.08013.98
5.3.90.0030.06314.03
5.3.80.0000.07014.04
5.3.70.0130.06013.96
5.3.60.0070.06713.93
5.3.50.0030.05313.90
5.3.40.0100.08313.75
5.3.30.0030.07313.86
5.3.20.0170.05013.64
5.3.10.0100.04013.58
5.3.00.0200.05313.56
5.2.170.0030.03311.07
5.2.160.0000.03311.11
5.2.150.0030.04011.09
5.2.140.0100.05011.13
5.2.130.0030.04711.18
5.2.120.0000.05311.03
5.2.110.0030.03311.08
5.2.100.0030.06310.98
5.2.90.0030.05011.04
5.2.80.0100.05710.99
5.2.70.0070.04711.04
5.2.60.0070.04310.99
5.2.50.0070.05710.91
5.2.40.0000.07010.94
5.2.30.0000.05310.96
5.2.20.0070.03310.88
5.2.10.0070.03310.85
5.2.00.0030.03310.71
5.1.60.0030.05010.07
5.1.50.0000.03710.06
5.1.40.0030.0279.99
5.1.30.0130.05310.38
5.1.20.0000.04310.34
5.1.10.0030.04310.06
5.1.00.0070.0409.90
5.0.50.0030.0378.54
5.0.40.0030.0308.51
5.0.30.0030.0478.51
5.0.20.0070.0438.51
5.0.10.0070.0338.51
5.0.00.0000.0678.51
4.4.90.0030.0338.51
4.4.80.0030.0208.51
4.4.70.0000.0408.51
4.4.60.0000.0278.51
4.4.50.0000.0308.51
4.4.40.0030.0378.51
4.4.30.0000.0238.51
4.4.20.0030.0178.51
4.4.10.0030.0338.51
4.4.00.0000.0608.51
4.3.110.0030.0338.51
4.3.100.0030.0178.51
4.3.90.0130.0178.51
4.3.80.0000.0578.51
4.3.70.0000.0308.51
4.3.60.0000.0378.51
4.3.50.0030.0338.51
4.3.40.0000.0478.51
4.3.30.0070.0208.51
4.3.20.0000.0378.51
4.3.10.0000.0378.51
4.3.00.0000.0308.51

preferences:
42.59 ms | 401 KiB | 5 Q