3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_POST["submit"])){ if($_POST['formsend']==1){ if($_POST["user"]!="" && $_POST["email"]!="" && $_POST["message"]!=""){ $file=fopen("database.txt","a+"); fwrite($file,$_POST["user"]." ".$_POST["email"]." ".$POST["message"]."\r\n"); fclose($file); } } }

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.70.0090.00618.18
8.3.60.0100.00716.75
8.3.50.0100.00921.95
8.3.40.0110.00318.46
8.3.30.0040.01119.05
8.3.20.0090.00020.20
8.3.10.0000.00823.51
8.3.00.0040.00419.13
8.2.180.0230.00316.36
8.2.170.0080.00822.96
8.2.160.0110.00320.37
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0070.00022.25
8.2.110.0070.00320.38
8.2.100.0040.00817.78
8.2.90.0030.00619.05
8.2.80.0000.00917.97
8.2.70.0030.00617.50
8.2.60.0000.00818.03
8.2.50.0050.00318.07
8.2.40.0000.00819.93
8.2.30.0040.00418.06
8.2.20.0050.00317.55
8.2.10.0040.00418.00
8.2.00.0000.00717.66
8.1.280.0080.00825.92
8.1.270.0000.00823.96
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00322.42
8.1.230.0000.01120.93
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.12
8.1.190.0000.00817.25
8.1.180.0030.00618.10
8.1.170.0030.00618.56
8.1.160.0000.00722.00
8.1.150.0080.00018.46
8.1.140.0040.00417.38
8.1.130.0000.00717.75
8.1.120.0040.00417.40
8.1.110.0030.00517.37
8.1.100.0000.00817.25
8.1.90.0030.00517.44
8.1.80.0030.00317.39
8.1.70.0030.00517.36
8.1.60.0090.00017.50
8.1.50.0040.00417.41
8.1.40.0020.00517.34
8.1.30.0030.00617.48
8.1.20.0000.00817.54
8.1.10.0040.00417.36
8.1.00.0000.00917.39
8.0.300.0050.00320.69
8.0.290.0040.00417.05
8.0.280.0030.00618.42
8.0.270.0000.00817.15
8.0.260.0070.00017.20
8.0.250.0000.00716.79
8.0.240.0030.00316.77
8.0.230.0030.00316.81
8.0.220.0030.00316.78
8.0.210.0070.00016.71
8.0.200.0000.00716.93
8.0.190.0020.00516.78
8.0.180.0000.00716.84
8.0.170.0000.00816.82
8.0.160.0040.00416.88
8.0.150.0000.00716.73
8.0.140.0040.00416.81
8.0.130.0030.00313.23
8.0.120.0040.00416.70
8.0.110.0040.00416.73
8.0.100.0050.00216.73
8.0.90.0040.00416.89
8.0.80.0120.00916.86
8.0.70.0040.00416.86
8.0.60.0000.00716.79
8.0.50.0040.00416.68
8.0.30.0140.00616.93
8.0.20.0100.00717.40
8.0.10.0040.00416.79
8.0.00.0100.00816.71
7.4.330.0060.00015.00
7.4.320.0030.00316.45
7.4.300.0060.00016.44
7.4.290.0030.00516.55
7.4.280.0050.00316.49
7.4.270.0070.00016.45
7.4.260.0000.00716.55
7.4.250.0030.00516.50
7.4.240.0060.00116.52
7.4.230.0070.00016.64
7.4.220.0110.00716.46
7.4.210.0090.00516.47
7.4.200.0000.00716.56
7.4.190.0040.00416.31
7.4.160.0130.00416.46
7.4.150.0100.01417.40
7.4.140.0090.00717.86
7.4.130.0070.01016.40
7.4.120.0130.00516.51
7.4.110.0100.00716.43
7.4.100.0070.01316.56
7.4.90.0070.01016.34
7.4.80.0100.00719.39
7.4.70.0070.01016.28
7.4.60.0100.00716.07
7.4.50.0000.00516.20
7.4.40.0120.00416.48
7.4.30.0130.00316.46
7.4.00.0070.00714.82
7.3.330.0050.00013.04
7.3.320.0030.00213.06
7.3.310.0000.00716.29
7.3.300.0000.00616.18
7.3.290.0030.01016.15
7.3.280.0110.00816.24
7.3.270.0060.01317.40
7.3.260.0190.00016.44
7.3.250.0110.01016.41
7.3.240.0130.00316.24
7.3.230.0030.01416.41
7.3.210.0100.01016.25
7.3.200.0110.00819.39
7.3.190.0120.01016.13
7.3.180.0120.00916.14
7.3.170.0090.00616.27
7.3.160.0120.00616.32
7.3.120.0040.01114.46
7.3.10.0080.00616.29
7.3.00.0120.00216.35
7.2.330.0130.00416.38
7.2.320.0150.00816.68
7.2.310.0090.00916.67
7.2.300.0060.00916.64
7.2.290.0130.01016.39
7.2.130.0170.00216.80
7.2.120.0110.00416.77
7.2.110.0070.00916.77
7.2.100.0110.00516.90
7.2.90.0110.00516.77
7.2.80.0100.00416.64
7.2.70.0030.01216.84
7.2.60.0080.00816.85
7.2.50.0080.00616.80
7.2.40.0050.00916.86
7.2.30.0000.01116.66
7.2.20.0120.01016.64
7.2.10.0070.00816.80
7.2.00.0040.00817.58
7.1.250.0020.01015.67
7.1.240.0080.00815.35
7.1.230.0190.00315.54
7.1.220.0090.00315.74
7.1.210.0080.00815.64
7.1.200.0070.00315.30
7.1.190.0070.00715.64
7.1.180.0160.00615.50
7.1.170.0060.00615.53
7.1.160.0130.00315.74
7.1.150.0100.00715.73
7.1.140.0070.00415.60
7.1.130.0100.00715.56
7.1.120.0090.00315.46
7.1.110.0070.00315.38
7.1.100.0140.00016.97
7.1.90.0060.00615.66
7.1.80.0080.00815.43
7.1.70.0070.00316.32
7.1.60.0080.01017.58
7.1.50.0150.00825.02
7.1.40.0070.00315.42
7.1.30.0040.00715.74
7.1.20.0070.00715.52
7.1.10.0000.01115.56
7.1.00.0080.04019.13
7.0.330.0040.00715.11
7.0.320.0030.00515.21
7.0.310.0070.01114.99
7.0.300.0040.00915.09
7.0.290.0040.00415.02
7.0.280.0070.00715.23
7.0.270.0000.01315.03
7.0.260.0100.00315.23
7.0.250.0090.00615.18
7.0.240.0000.01114.96
7.0.230.0000.00915.00
7.0.220.0050.00314.99
7.0.210.0030.00615.15
7.0.200.0070.00415.93
7.0.190.0040.00415.23
7.0.180.0080.00414.99
7.0.170.0100.01014.99
7.0.160.0040.01115.34
7.0.150.0040.00415.29
7.0.140.0060.04018.63
7.0.130.0080.00315.14
7.0.120.0200.00315.23
7.0.110.0000.01015.11
7.0.100.0090.00014.84
7.0.90.0160.00614.87
7.0.80.0030.00715.03
7.0.70.0050.02418.42
7.0.60.0010.01918.28
7.0.50.0040.02118.68
7.0.40.0050.02716.65
7.0.30.0060.02016.64
7.0.20.0010.02116.62
7.0.10.0030.02016.62
7.0.00.0050.03016.54
5.6.380.0070.00714.09
5.6.370.0000.00913.86
5.6.360.0030.00913.76
5.6.350.0060.00613.72
5.6.340.0080.00414.21
5.6.330.0070.00313.90
5.6.320.0120.00813.63
5.6.310.0130.00314.06
5.6.300.0060.01113.61
5.6.290.0130.00013.94
5.6.280.0070.04017.46
5.6.270.0040.00713.88
5.6.260.0040.00813.92
5.6.250.0080.00313.77
5.6.240.0050.00313.83
5.6.230.0150.00813.84
5.6.220.0020.02317.26
5.6.210.0070.02017.20
5.6.200.0050.02017.57
5.6.190.0070.01917.59
5.6.180.0080.02517.50
5.6.170.0070.03217.46
5.6.160.0030.04517.36
5.6.150.0050.02217.52
5.6.140.0080.02617.68
5.6.130.0050.02517.52
5.6.120.0070.04217.43
5.6.110.0030.04617.51
5.6.100.0060.03517.52
5.6.90.0100.03817.62
5.6.80.0020.04517.22
5.6.70.0100.03817.16
5.6.60.0080.04017.23
5.6.50.0100.04317.24
5.6.40.0060.03917.12
5.6.30.0090.04017.12
5.6.20.0070.04217.13
5.6.10.0050.03017.20
5.6.00.0050.04417.18
5.5.380.0000.00710.73
5.5.370.0050.00510.54
5.5.360.0050.02015.61
5.5.350.0040.01815.56
5.5.340.0020.02015.87
5.5.330.0090.01515.80
5.5.320.0020.02415.89
5.5.310.0050.02315.83
5.5.300.0120.01715.76
5.5.290.0100.04015.76
5.5.280.0040.03115.92
5.5.270.0080.03515.81
5.5.260.0070.03815.80
5.5.250.0050.03615.67
5.5.240.0080.03815.51
5.5.230.0060.04615.47
5.5.220.0080.03115.39
5.5.210.0070.04315.41
5.5.200.0070.04015.45
5.5.190.0060.04215.56
5.5.180.0090.03615.51
5.5.170.0040.00810.74
5.5.160.0090.04015.63
5.5.150.0080.04015.53
5.5.140.0100.03715.44
5.5.130.0050.03015.47
5.5.120.0110.04015.46
5.5.110.0140.03915.37
5.5.100.0040.03615.42
5.5.90.0040.03915.50
5.5.80.0050.03515.36
5.5.70.0170.03315.50
5.5.60.0180.03215.48
5.5.50.0040.03315.47
5.5.40.0070.02315.36
5.5.30.0070.03015.37
5.5.20.0100.02215.30
5.5.10.0060.02815.43
5.5.00.0080.04315.52
5.4.450.0060.03315.01
5.4.440.0030.03414.95
5.4.430.0070.04014.85
5.4.420.0090.04014.81
5.4.410.0030.03914.84
5.4.400.0060.03314.65
5.4.390.0070.04014.84
5.4.380.0110.03214.79
5.4.370.0080.03114.83
5.4.360.0060.04014.77
5.4.350.0090.04014.64
5.4.340.0050.03714.61
5.4.330.0060.00910.63
5.4.320.0070.03714.99
5.4.310.0080.03814.76
5.4.300.0040.04114.87
5.4.290.0020.04314.85
5.4.280.0050.04014.79
5.4.270.0210.03714.64
5.4.260.0050.04314.65
5.4.250.0050.03714.81
5.4.240.0000.04114.88
5.4.230.0100.02714.75
5.4.220.0020.04414.86
5.4.210.0060.02314.97
5.4.200.0070.03214.67
5.4.190.0030.03414.88
5.4.180.0070.03814.86
5.4.170.0070.02514.86
5.4.160.0060.02714.94
5.4.150.0080.03214.96
5.4.140.0040.03513.69
5.4.130.0080.03313.63
5.4.120.0150.03513.51
5.4.110.0030.04013.43
5.4.100.0100.03613.67
5.4.90.0070.02313.52
5.4.80.0030.04113.50
5.4.70.0050.02413.48
5.4.60.0100.03513.48
5.4.50.0080.02313.54
5.4.40.0060.03513.57
5.4.30.0110.02813.37
5.4.20.0070.03813.24
5.4.10.0060.03813.57
5.4.00.0060.03513.18
5.3.290.0090.04212.48
5.3.280.0020.04312.47
5.3.270.0040.04312.44
5.3.260.0040.04412.36
5.3.250.0060.02012.49
5.3.240.0040.02612.36
5.3.230.0070.04012.31
5.3.220.0080.03912.33
5.3.210.0100.03812.30
5.3.200.0020.04312.40
5.3.190.0050.04312.35
5.3.180.0060.04112.39
5.3.170.0040.04012.43
5.3.160.0050.04012.46
5.3.150.0070.03312.45
5.3.140.0090.02212.39
5.3.130.0050.03212.24
5.3.120.0060.02512.38
5.3.110.0050.03212.32
5.3.100.0080.03812.18
5.3.90.0000.03112.13
5.3.80.0120.03511.98
5.3.70.0050.03812.18
5.3.60.0070.03412.08
5.3.50.0090.02311.95
5.3.40.0060.02611.93
5.3.30.0070.03312.04
5.3.20.0050.03511.91
5.3.10.0020.02511.73
5.3.00.0060.03411.75
5.2.170.0090.03210.19
5.2.160.0020.03710.26
5.2.150.0050.01810.07
5.2.140.0060.02910.06
5.2.130.0000.02610.23
5.2.120.0050.02810.15
5.2.110.0090.02610.23
5.2.100.0070.03010.19
5.2.90.0150.03010.18
5.2.80.0120.02310.11
5.2.70.0090.03010.08
5.2.60.0030.0329.94
5.2.50.0050.02810.08
5.2.40.0090.02610.10
5.2.30.0130.0339.89
5.2.20.0150.02010.05
5.2.10.0100.0329.92
5.2.00.0060.0239.87
5.1.60.0060.0259.31
5.1.50.0070.0209.17
5.1.40.0030.0309.25
5.1.30.0100.0209.34
5.1.20.0030.0249.30
5.1.10.0020.0309.32
5.1.00.0060.0279.15
5.0.50.0030.0208.49
5.0.40.0050.0228.49
5.0.30.0050.0288.49
5.0.20.0070.0228.49
5.0.10.0020.0208.49
5.0.00.0050.0238.49
4.4.90.0060.0178.49
4.4.80.0030.0138.49
4.4.70.0040.0208.49
4.4.60.0070.0108.49
4.4.50.0020.0188.49
4.4.40.0030.0248.49
4.4.30.0060.0138.49
4.4.20.0010.0208.49
4.4.10.0030.0188.49
4.4.00.0030.0238.49
4.3.110.0060.0118.49
4.3.100.0070.0158.49
4.3.90.0000.0128.49
4.3.80.0030.0238.49
4.3.70.0000.0228.49
4.3.60.0050.0148.49
4.3.50.0000.0118.49
4.3.40.0000.0238.49
4.3.30.0000.0208.49
4.3.20.0050.0168.49
4.3.10.0000.0158.49
4.3.00.0030.0218.49

preferences:
47.71 ms | 401 KiB | 5 Q