3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'askdfjl ak<input name="submit" type="submit" id="submit" value="发表评论" />afadf'; echo preg_replace('/<input name="submit"[^>]+>/', '', $a);

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.0070.01416.75
8.3.50.0130.00618.33
8.3.40.0150.00019.09
8.3.30.0110.00418.89
8.3.20.0050.00318.90
8.3.10.0050.00520.52
8.3.00.0050.00319.50
8.2.180.0130.00316.75
8.2.170.0110.00422.96
8.2.160.0140.00019.29
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.01126.16
8.2.120.0000.00917.63
8.2.110.0060.00322.14
8.2.100.0030.00918.04
8.2.90.0000.00818.22
8.2.80.0000.00818.04
8.2.70.0030.00517.88
8.2.60.0080.00417.55
8.2.50.0090.00018.10
8.2.40.0040.00420.59
8.2.30.0000.00819.14
8.2.20.0000.00919.54
8.2.10.0040.00417.83
8.2.00.0040.00417.82
8.1.280.0130.00625.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.96
8.1.230.0040.00720.94
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0060.00317.25
8.1.190.0000.00919.26
8.1.180.0040.00418.10
8.1.170.0080.00018.64
8.1.160.0000.00718.84
8.1.150.0040.00418.90
8.1.140.0040.00417.49
8.1.130.0030.00317.84
8.1.120.0080.00417.48
8.1.110.0000.00717.53
8.1.100.0000.00717.45
8.1.90.0040.00417.56
8.1.80.0040.00417.42
8.1.70.0040.00417.50
8.1.60.0060.00917.55
8.1.50.0000.00717.52
8.1.40.0040.00417.50
8.1.30.0060.00317.63
8.1.20.0050.00317.76
8.1.10.0070.00017.55
8.1.00.0070.00017.64
8.0.300.0000.00820.08
8.0.290.0060.00316.88
8.0.280.0000.00818.37
8.0.270.0000.00717.30
8.0.260.0030.00316.94
8.0.250.0070.00017.03
8.0.240.0000.00717.13
8.0.230.0000.00617.07
8.0.220.0000.00716.98
8.0.210.0000.00616.85
8.0.200.0070.00017.00
8.0.190.0070.00016.90
8.0.180.0070.00016.97
8.0.170.0030.00616.90
8.0.160.0030.00316.96
8.0.150.0030.00516.80
8.0.140.0000.00816.82
8.0.130.0000.00613.46
8.0.120.0050.00216.93
8.0.110.0070.00016.80
8.0.100.0070.00016.88
8.0.90.0050.00316.86
8.0.80.0040.01117.00
8.0.70.0040.00416.99
8.0.60.0000.00716.83
8.0.50.0040.00416.86
8.0.30.0070.01417.40
8.0.20.0080.01017.33
8.0.10.0000.00817.16
8.0.00.0110.01117.04
7.4.330.0020.00213.21
7.4.320.0030.00316.64
7.4.300.0000.00916.62
7.4.290.0030.00316.71
7.4.280.0040.00416.57
7.4.270.0000.00716.67
7.4.260.0050.00013.47
7.4.250.0020.00516.58
7.4.240.0030.00316.67
7.4.230.0000.00716.74
7.4.220.0120.00616.66
7.4.210.0000.01416.86
7.4.200.0070.00016.79
7.4.190.0000.00716.81
7.4.160.0060.00916.56
7.4.150.0090.01416.52
7.4.140.0120.01316.39
7.4.130.0170.00616.75
7.4.120.0060.01216.56
7.4.110.0040.01516.75
7.4.100.0100.01416.88
7.4.90.0060.01216.82
7.4.80.0060.01119.39
7.4.70.0110.00616.70
7.4.60.0140.00416.66
7.4.50.0000.00516.49
7.4.40.0090.00616.42
7.4.30.0130.01016.57
7.4.00.0000.01615.01
7.3.330.0000.00613.11
7.3.320.0000.00513.10
7.3.310.0030.00316.30
7.3.300.0000.00716.18
7.3.290.0090.00816.28
7.3.280.0090.00616.33
7.3.270.0030.01316.48
7.3.260.0050.01316.33
7.3.250.0090.00916.60
7.3.240.0190.00316.61
7.3.230.0100.00716.62
7.3.210.0030.01416.24
7.3.200.0070.01116.34
7.3.190.0170.00616.57
7.3.180.0080.00816.72
7.3.170.0120.00316.56
7.3.160.0080.00816.34
7.3.120.0100.00714.88
7.3.10.0080.00416.66
7.3.00.0030.01016.73
7.2.330.0060.01116.42
7.2.320.0130.01016.68
7.2.310.0140.00316.58
7.2.300.0130.00316.57
7.2.290.0100.01016.61
7.2.130.0070.00316.68
7.2.120.0040.01217.04
7.2.110.0090.00017.10
7.2.100.0070.00716.93
7.2.90.0120.00016.80
7.2.80.0000.01316.91
7.2.70.0030.01016.89
7.2.60.0110.00417.05
7.2.50.0060.00916.89
7.2.40.0090.00317.13
7.2.30.0030.01016.79
7.2.20.0080.00416.99
7.2.10.0070.00416.73
7.2.00.0020.00918.27
7.1.250.0000.00916.03
7.1.100.0060.00618.23
7.1.70.0040.00417.04
7.1.60.0130.01319.17
7.1.50.0190.00316.96
7.1.00.0000.07722.36
7.0.200.0070.00016.93
7.0.140.0070.07021.93
7.0.120.0030.07322.05
7.0.60.0130.07020.05
7.0.50.0030.08017.81
7.0.40.0070.04020.11
7.0.30.0270.06020.35
7.0.20.0200.04720.18
7.0.10.0270.04320.11
7.0.00.0100.08720.14
5.6.280.0100.06321.09
5.6.210.0100.07020.72
5.6.200.0070.08018.15
5.6.190.0130.06320.41
5.6.180.0300.03020.36
5.6.170.0200.07020.45
5.6.160.0070.06020.70
5.6.150.0100.08018.21
5.6.140.0070.03718.18
5.6.130.0000.07018.18
5.6.120.0100.07720.99
5.6.110.0000.04321.13
5.6.100.0230.06721.07
5.6.90.0070.08720.99
5.6.80.0030.08020.40
5.6.70.0130.04020.52
5.5.350.0300.03720.40
5.5.340.0170.06717.91
5.5.330.0000.05320.20
5.5.320.0270.06320.47
5.5.310.0200.04020.21
5.5.300.0070.03718.01
5.5.290.0070.04717.92
5.5.280.0000.06720.76
5.5.270.0130.07720.96
5.5.260.0070.08320.75
5.5.250.0130.07720.59
5.5.240.0100.08020.25
5.4.450.0070.04319.26
5.4.440.0100.08019.41
5.4.430.0030.05019.40
5.4.420.0100.08019.24
5.4.410.0130.06019.27
5.4.400.0100.06319.12
5.4.390.0100.07319.18
5.4.380.0030.05019.19
5.4.370.0030.07718.91
5.4.360.0130.07319.18
5.4.350.0170.06319.01
5.4.340.0130.05019.11
5.4.320.0030.05719.12
5.4.310.0000.06318.79
5.4.300.0030.05719.11
5.4.290.0030.06319.14
5.4.280.0130.07719.18
5.4.270.0070.08019.17
5.4.260.0070.06319.14
5.4.250.0100.07019.17
5.4.240.0070.07319.11
5.4.230.0070.07718.91
5.4.220.0100.05019.14
5.4.210.0030.07719.19
5.4.200.0200.06319.14
5.4.190.0070.05018.77
5.4.180.0070.06719.10
5.4.170.0030.05019.14
5.4.160.0030.05318.78
5.4.150.0070.06319.13
5.4.140.0030.05316.34
5.4.130.0000.06316.20
5.4.120.0130.05716.35
5.4.110.0100.05316.29
5.4.100.0070.03316.23
5.4.90.0000.04016.14
5.4.80.0070.07016.21
5.4.70.0030.07716.27
5.4.60.0070.06716.21
5.4.50.0070.07316.21
5.4.40.0130.07016.21
5.4.30.0170.06316.38
5.4.20.0030.03716.24
5.4.10.0230.03716.21
5.4.00.0070.06715.73
5.3.290.0100.05314.60
5.3.280.0130.07314.57
5.3.270.0070.07314.54
5.3.260.0100.07014.48
5.3.250.0070.04714.44
5.3.240.0000.05014.54
5.3.230.0000.08314.50
5.3.220.0070.06714.44
5.3.210.0070.07714.48
5.3.200.0000.05014.49
5.3.190.0070.05314.44
5.3.180.0230.05014.47
5.3.170.0030.06714.44
5.3.160.0070.05714.48
5.3.150.0100.07314.48
5.3.140.0100.04014.49
5.3.130.0130.06314.36
5.3.120.0070.03714.47
5.3.110.0070.08014.47
5.3.100.0170.04013.96
5.3.90.0000.05714.11
5.3.80.0070.07714.11
5.3.70.0070.04014.00
5.3.60.0130.06713.98
5.3.50.0070.07713.78
5.3.40.0070.06713.96
5.3.30.0000.08013.86
5.3.20.0000.08013.62
5.3.10.0070.07013.57
5.3.00.0030.06713.58
5.2.170.0000.07311.11
5.2.160.0070.05711.12
5.2.150.0070.05711.08
5.2.140.0030.05311.11
5.2.130.0070.06011.11
5.2.120.0170.05710.99
5.2.110.0000.03311.18
5.2.100.0100.03011.08
5.2.90.0000.07010.98
5.2.80.0000.04710.93
5.2.70.0070.06011.07
5.2.60.0030.06311.02
5.2.50.0030.05011.00
5.2.40.0070.05310.97
5.2.30.0000.04010.90
5.2.20.0070.05310.89
5.2.10.0170.03010.87
5.2.00.0070.06010.59
5.1.60.0100.0379.83
5.1.50.0000.0509.98
5.1.40.0030.0479.93
5.1.30.0070.05310.33
5.1.20.0130.03710.39
5.1.10.0030.0579.91
5.1.00.0070.0539.96
5.0.50.0030.0478.44
5.0.40.0030.0238.37
5.0.30.0070.0338.29
5.0.20.0000.0438.29
5.0.10.0030.0208.29
5.0.00.0000.0338.29
4.4.90.0030.0308.29
4.4.80.0000.0408.29
4.4.70.0030.0378.29
4.4.60.0030.0338.29
4.4.50.0070.0238.29
4.4.40.0000.0508.29
4.4.30.0000.0338.29
4.4.20.0030.0278.29
4.4.10.0000.0278.29
4.4.00.0030.0378.29
4.3.110.0000.0378.29
4.3.100.0030.0308.29
4.3.90.0030.0308.29
4.3.80.0070.0438.29
4.3.70.0000.0238.29
4.3.60.0000.0378.29
4.3.50.0000.0378.29
4.3.40.0030.0538.29
4.3.30.0030.0238.29
4.3.20.0000.0278.29
4.3.10.0030.0378.29
4.3.00.0000.0378.29

preferences:
43.95 ms | 401 KiB | 5 Q