3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_content = 'hello <p> </p><p ></p><div><p> </p><a href="http://feeds.feedburner.com/~ff/NakedCapitalism?a=erNtBkuNSQs:shUVd8nk1SU:yIl2AUoC8zA"> <img src="http://feeds.feedburner.com/~ff/NakedCapitalism?d=yIl2AUoC8zA" alt="" border="0" /></a> <a href="http://feeds.feedburner.com/~ff/NakedCapitalism?a=erNtBkuNSQs:shUVd8nk1SU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/NakedCapitalism?i=erNtBkuNSQs:shUVd8nk1SU:V_sGLiPBpWU" alt="" border="0" /></a> <a href="http://feeds.feedburner.com/~ff/NakedCapitalism?a=erNtBkuNSQs:shUVd8nk1SU:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/NakedCapitalism?d=l6gmwiTKsz0" alt="" border="0" /></a> <a href="http://feeds.feedburner.com/~ff/NakedCapitalism?a=erNtBkuNSQs:shUVd8nk1SU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/NakedCapitalism?i=erNtBkuNSQs:shUVd8nk1SU:F7zBnMyn0Lo" alt="" border="0" /></a> <a href="http://feeds.feedburner.com/~ff/NakedCapitalism?a=erNtBkuNSQs:shUVd8nk1SU:cGdyc7Q-1BI"><img src="http://feeds.feedburner.com/~ff/NakedCapitalism?d=cGdyc7Q-1BI" alt="" border="0" /></a> <a href="http://feeds.feedburner.com/~ff/NakedCapitalism?a=erNtBkuNSQs:shUVd8nk1SU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/NakedCapitalism?i=erNtBkuNSQs:shUVd8nk1SU:gIN9vFwOqvQ" alt="" border="0" /></a> <a href="http://feeds.feedburner.com/~ff/NakedCapitalism?a=erNtBkuNSQs:shUVd8nk1SU:qj6IDK7rITs"> <img src="http://feeds.feedburner.com/~ff/NakedCapitalism?d=qj6IDK7rITs" alt="" border="0" /></a></div>there'; $_content = preg_replace('#<img([^>]*?)(\/feeds.feedburner.com\/~ff\/)[^>]*>#i', '', $_content); $_content = preg_replace('#<a [^>]*>(\s*)<\/a>#i', '',$_content); $_content = preg_replace('#<p[^>]*>(\s*)</p>#i', '', $_content); $_content = preg_replace('#<div[^>]*>(\s*)<\/div>#i', '', $_content); echo $_content;

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.0140.00718.18
8.3.50.0170.01122.90
8.3.40.0090.00618.98
8.3.30.0140.00319.11
8.3.20.0050.00220.24
8.3.10.0000.00823.68
8.3.00.0040.00417.75
8.2.180.0120.00616.50
8.2.170.0150.00722.96
8.2.160.0160.00318.97
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0060.00321.01
8.2.110.0070.00322.43
8.2.100.0000.01317.91
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0050.00317.75
8.2.60.0040.00817.80
8.2.50.0060.00318.07
8.2.40.0080.00018.22
8.2.30.0040.00418.03
8.2.20.0070.00017.91
8.2.10.0030.00618.26
8.2.00.0000.00917.99
8.1.280.0040.01425.92
8.1.270.0030.00523.78
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0000.00923.86
8.1.230.0120.00019.02
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.01017.35
8.1.190.0000.00817.36
8.1.180.0000.00818.10
8.1.170.0040.00418.63
8.1.160.0040.00421.91
8.1.150.0000.00718.80
8.1.140.0070.00017.55
8.1.130.0070.00017.92
8.1.120.0040.00417.62
8.1.110.0030.00517.45
8.1.100.0070.00017.61
8.1.90.0040.00417.55
8.1.80.0000.00717.57
8.1.70.0040.00417.55
8.1.60.0030.00617.75
8.1.50.0000.00817.61
8.1.40.0040.00417.61
8.1.30.0000.00817.75
8.1.20.0000.00817.72
8.1.10.0070.00017.72
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00318.55
8.0.270.0030.00316.98
8.0.260.0070.00017.17
8.0.250.0040.00417.13
8.0.240.0000.00717.08
8.0.230.0030.00616.89
8.0.220.0040.00416.89
8.0.210.0070.00016.89
8.0.200.0030.00316.95
8.0.190.0000.00817.01
8.0.180.0030.00517.00
8.0.170.0040.00416.99
8.0.160.0030.00316.96
8.0.150.0040.00416.98
8.0.140.0000.00816.98
8.0.130.0000.00813.43
8.0.120.0080.00016.95
8.0.110.0050.00216.95
8.0.100.0000.00717.03
8.0.90.0000.00717.01
8.0.80.0070.01516.94
8.0.70.0000.00816.88
8.0.60.0000.00716.86
8.0.50.0000.00716.98
8.0.30.0100.01017.28
8.0.20.0080.01117.40
8.0.10.0040.00416.95
8.0.00.0110.00616.90
7.4.330.0000.00515.11
7.4.320.0000.00616.67
7.4.300.0060.00016.72
7.4.290.0000.00716.62
7.4.280.0030.00616.77
7.4.270.0030.00316.77
7.4.260.0050.00316.66
7.4.250.0030.00516.78
7.4.240.0050.00216.78
7.4.230.0030.00316.87
7.4.220.0130.00716.54
7.4.210.0060.00916.70
7.4.200.0000.00716.48
7.4.160.0030.01216.66
7.4.150.0130.00617.40
7.4.140.0040.01317.86
7.4.130.0110.00616.64
7.4.120.0130.01016.85
7.4.110.0060.01216.64
7.4.100.0150.00316.54
7.4.90.0180.00016.51
7.4.80.0090.00919.39
7.4.70.0150.00316.69
7.4.60.0090.00616.81
7.4.50.0030.00616.64
7.4.40.0130.00316.51
7.4.30.0080.00816.71
7.4.00.0060.01015.16
7.3.330.0060.00013.28
7.3.320.0060.00013.10
7.3.310.0030.00316.19
7.3.300.0000.00716.41
7.3.290.0070.01316.31
7.3.280.0090.00916.35
7.3.270.0040.01317.40
7.3.260.0030.01616.47
7.3.250.0120.00816.60
7.3.240.0110.00816.59
7.3.230.0120.00616.68
7.3.210.0080.00916.39
7.3.200.0090.01319.39
7.3.190.0100.00616.40
7.3.180.0170.00616.48
7.3.170.0030.01316.83
7.3.160.0060.01416.20
7.2.330.0090.00916.78
7.2.320.0130.00416.83
7.2.310.0150.00316.62
7.2.300.0070.01016.79
7.2.290.0030.01516.62
7.2.60.0100.00316.73
7.1.200.0080.00816.07
7.1.70.0000.00717.23
7.1.60.0110.01419.40
7.1.50.0120.00917.00
7.1.00.0070.07322.53
7.0.200.0000.01016.88
7.0.140.0070.06722.04
7.0.60.0070.07719.94
7.0.50.0000.06317.94
7.0.40.0130.03720.29
7.0.30.0470.04320.11
7.0.20.0170.04320.05
7.0.10.0000.09020.22
7.0.00.0200.07020.10
5.6.280.0070.07020.90
5.6.210.0000.04320.64
5.6.200.0170.07318.16
5.6.190.0130.07720.67
5.6.180.2900.04320.35
5.6.170.0200.05020.49
5.6.160.0000.07320.61
5.6.150.0000.05018.18
5.6.140.0070.03718.17
5.6.130.0070.06018.18
5.6.120.0100.08321.03
5.6.110.0170.06021.08
5.6.100.0100.08321.13
5.6.90.0070.07020.88
5.6.80.0130.06020.38
5.6.70.3070.04320.39
5.5.350.0370.06720.46
5.5.340.0100.07717.88
5.5.330.0070.08020.23
5.5.320.0200.04320.50
5.5.310.0330.07720.18
5.5.300.0070.07317.91
5.5.290.0100.04317.98
5.5.280.0030.05720.95
5.5.270.0070.08320.89
5.5.260.0130.03320.76
5.5.250.0070.08720.64
5.5.240.0170.06320.16
5.4.450.0770.05319.31
5.4.440.0700.04319.58
5.4.430.0230.05719.10
5.4.420.0070.06019.52
5.4.410.0130.05319.40
5.4.400.0130.05319.23
5.4.390.0170.04318.98
5.4.380.0330.05718.60
5.4.370.0370.05318.68
5.4.360.0230.05718.45
5.4.350.0570.05018.79
5.4.340.0330.06318.74
5.4.320.0090.03612.46
5.4.310.0050.04012.46
5.4.300.0050.03812.46
5.4.290.0030.04112.46
5.4.280.0080.03312.36
5.4.270.0070.04112.36
5.4.260.0060.03712.36
5.4.250.0050.03812.36
5.4.240.0080.03412.36
5.4.230.0060.03812.35
5.4.220.0040.03712.35
5.4.210.0100.03212.35
5.4.200.0060.04112.35
5.4.190.0070.03912.35
5.4.180.0040.04212.35
5.4.170.0080.03412.35
5.4.160.0040.03812.35
5.4.150.0080.03412.34
5.4.140.0040.04012.03
5.4.130.0070.03412.02
5.4.120.0030.03711.98
5.4.110.0050.03611.97
5.4.100.0050.03711.97
5.4.90.0060.03711.97
5.4.80.0070.03911.97
5.4.70.0040.04811.96
5.4.60.0070.03511.96
5.4.50.0090.04511.96
5.4.40.0070.04011.95
5.4.30.0050.03711.95
5.4.20.0040.04411.95
5.4.10.0050.03711.95
5.4.00.0050.03711.45
5.3.290.0100.03712.80
5.3.280.0060.03712.71
5.3.270.0030.04312.72
5.3.260.0060.03912.72
5.3.250.0040.03812.72
5.3.240.0070.03612.72
5.3.230.0030.04012.71
5.3.220.0080.04112.68
5.3.210.0080.03612.68
5.3.200.0040.03812.68
5.3.190.0060.03712.67
5.3.180.0060.03712.67
5.3.170.0030.03912.67
5.3.160.0040.04112.67
5.3.150.0080.04912.68
5.3.140.0050.03812.66
5.3.130.0080.04212.66
5.3.120.0070.03812.66
5.3.110.0080.03712.66
5.3.100.0060.03612.12
5.3.90.0060.03612.08
5.3.80.0060.03812.08
5.3.70.0040.04012.07
5.3.60.0060.03712.07
5.3.50.0080.03412.00
5.3.40.0040.03812.00
5.3.30.0070.03411.96
5.3.20.0050.04911.74
5.3.10.0090.04311.70
5.3.00.0060.03611.69
5.2.170.0050.0319.21
5.2.160.0060.0289.20
5.2.150.0070.0289.20
5.2.140.0080.0289.20
5.2.130.0070.0289.15
5.2.120.0050.0279.16
5.2.110.0090.0249.16
5.2.100.0060.0269.15
5.2.90.0050.0299.15
5.2.80.0020.0329.15
5.2.70.0060.0299.15
5.2.60.0020.0329.11
5.2.50.0050.0309.08
5.2.40.0060.0299.06
5.2.30.0050.0299.04
5.2.20.0030.0329.02
5.2.10.0040.0288.93
5.2.00.0040.0298.79
5.1.60.0050.0228.07
5.1.50.0020.0278.07
5.1.40.0020.0268.05
5.1.30.0060.0258.39
5.1.20.0070.0248.42
5.1.10.0030.0298.14
5.1.00.0050.0308.14
5.0.50.0010.0226.62
5.0.40.0090.0216.48
5.0.30.0030.0316.29
5.0.20.0050.0176.26
5.0.10.0060.0176.24
5.0.00.0040.0306.23
4.4.90.0020.0164.78
4.4.80.0020.0164.75
4.4.70.0020.0164.76
4.4.60.0040.0144.75
4.4.50.0030.0154.77
4.4.40.0050.0244.71
4.4.30.0040.0214.76
4.4.20.0060.0144.84
4.4.10.0010.0224.85
4.4.00.0030.0254.76
4.3.110.0010.0174.67
4.3.100.0030.0154.66
4.3.90.0020.0154.63
4.3.80.0020.0264.58
4.3.70.0050.0124.63
4.3.60.0030.0144.63
4.3.50.0030.0194.63
4.3.40.0020.0254.54
4.3.30.0000.0243.29
4.3.20.0010.0183.27
4.3.10.0000.0183.22
4.3.00.0130.0237.06

preferences:
90.1 ms | 401 KiB | 5 Q