3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = '<div><a class="nk" href="http://weibo.cn/u/1610526293?st=968f">阳光下的雪海</a><span class="ctt">:<a href="http://weibo.cn/pages/100808topic?extparam=%E4%B8%AD%E5%9B%BD%E4%B9%8B%E5%A3%B0&amp;from=feed&amp;st=968f" class="k">#中国之声#</a> <a href="http://weibo.cn/sinaurl?f=w&amp;u=http%3A%2F%2Ft.cn%2FzO2NEZA&amp;st=968f">http://t.cn/zO2NEZA</a></span> &nbsp;<a href="http://weibo.cn/attitude/zAueIaySO/add?uid=1704540003&amp;rl=0&amp;st=968f">赞[0]</a>&nbsp;<a href="http://weibo.cn/repost/zAueIaySO?uid=1610526293&amp;rl=0&amp;st=968f">转发[0]</a>&nbsp;<a href="http://weibo.cn/comment/zAueIaySO?uid=1610526293&amp;rl=0&amp;st=968f#cmtfrm" class="cc">评论[0]</a>&nbsp;<a href="http://weibo.cn/fav/addFav/zAueIaySO?rl=0&amp;st=968f">收藏</a><!---->&nbsp;<span class="ct">1分钟前&nbsp;来自手机微博触屏版</span></div>'; echo preg_replace("/(?<=href=\")[^\"]+\"/", "\1&afr=ad", $url);

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.0130.01018.38
8.3.50.0090.00722.05
8.3.40.0120.00318.79
8.3.30.0170.00318.95
8.3.20.0040.00418.86
8.3.10.0090.00020.95
8.3.00.0000.00823.66
8.2.180.0100.01016.48
8.2.170.0150.00022.96
8.2.160.0100.00320.35
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0080.00019.66
8.2.110.0030.00622.20
8.2.100.0060.00617.72
8.2.90.0000.00819.23
8.2.80.0030.00617.97
8.2.70.0000.00817.63
8.2.60.0090.00018.03
8.2.50.0040.00418.07
8.2.40.0060.00318.22
8.2.30.0040.00421.30
8.2.20.0030.00517.89
8.2.10.0040.00417.66
8.2.00.0030.00617.82
8.1.280.0070.00725.92
8.1.270.0030.00523.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0190.00022.59
8.1.230.0070.00420.92
8.1.220.0040.00418.77
8.1.210.0050.00318.96
8.1.200.0030.00617.35
8.1.190.0020.00517.53
8.1.180.0060.00318.10
8.1.170.0040.00418.56
8.1.160.0000.00718.87
8.1.150.0070.00018.70
8.1.140.0050.00317.51
8.1.130.0070.00017.78
8.1.120.0000.00817.59
8.1.110.0000.00817.45
8.1.100.0000.00717.61
8.1.90.0000.00717.43
8.1.80.0000.00817.57
8.1.70.0030.00317.46
8.1.60.0040.00417.72
8.1.50.0060.00317.48
8.1.40.0060.00617.52
8.1.30.0040.00417.81
8.1.20.0040.00417.74
8.1.10.0070.00017.68
8.1.00.0030.00617.53
8.0.300.0070.00020.07
8.0.290.0070.00017.30
8.0.280.0000.00718.43
8.0.270.0000.00717.34
8.0.260.0050.00317.05
8.0.250.0040.00417.06
8.0.240.0000.00917.08
8.0.230.0070.00017.05
8.0.220.0030.00316.96
8.0.210.0000.00716.89
8.0.200.0040.00417.07
8.0.190.0000.00817.02
8.0.180.0050.00316.90
8.0.170.0030.00417.05
8.0.160.0000.00817.02
8.0.150.0000.00717.01
8.0.140.0000.01016.96
8.0.130.0000.00513.38
8.0.120.0040.00416.92
8.0.110.0040.00416.98
8.0.100.0040.00417.08
8.0.90.0000.00716.93
8.0.80.0030.01216.96
8.0.70.0040.00416.79
8.0.60.0040.00416.90
8.0.50.0050.00216.83
8.0.30.0140.00717.39
8.0.20.0070.01117.43
8.0.10.0080.00017.09
8.0.00.0090.00916.77
7.4.330.0000.00513.43
7.4.320.0030.00316.59
7.4.300.0000.00616.61
7.4.290.0070.00016.73
7.4.280.0000.00716.68
7.4.270.0030.00616.60
7.4.260.0030.00313.34
7.4.250.0030.00616.77
7.4.240.0040.00416.72
7.4.230.0070.00016.53
7.4.220.0100.00916.68
7.4.210.0050.00916.73
7.4.200.0000.00816.88
7.4.190.0040.00416.93
7.4.160.0130.00916.45
7.4.150.0140.00417.40
7.4.140.0110.01117.86
7.4.130.0080.01316.78
7.4.120.0120.00616.71
7.4.110.0030.01416.59
7.4.100.0110.00616.66
7.4.90.0070.01016.73
7.4.80.0070.01019.39
7.4.70.0070.01616.57
7.4.60.0120.00616.74
7.4.50.0060.00316.48
7.4.40.0030.01222.52
7.4.30.0040.01216.80
7.4.00.0090.00614.75
7.3.330.0030.00313.20
7.3.320.0050.00013.19
7.3.310.0000.00716.09
7.3.300.0030.00316.31
7.3.290.0070.00716.32
7.3.280.0060.01216.30
7.3.270.0100.00717.40
7.3.260.0120.01218.24
7.3.250.0110.00816.68
7.3.240.0100.01016.41
7.3.230.0060.01216.39
7.3.210.0110.00716.52
7.3.200.0040.01619.39
7.3.190.0140.00316.27
7.3.180.0040.01216.26
7.3.170.0060.01516.74
7.3.160.0060.01016.64
7.3.120.0000.01515.07
7.3.110.0080.00314.86
7.3.100.0040.01114.82
7.3.90.0090.00915.09
7.3.80.0150.00015.04
7.3.70.0040.01114.83
7.3.60.0090.00914.79
7.3.50.0000.01614.73
7.3.40.0040.01114.93
7.3.30.0090.00315.01
7.3.20.0140.00016.49
7.3.10.0270.01216.79
7.3.00.0250.00316.52
7.2.330.0070.01016.69
7.2.320.0030.01616.43
7.2.310.0170.00716.74
7.2.300.0070.01016.68
7.2.290.0100.01016.80
7.2.240.0090.00314.95
7.2.230.0040.00814.82
7.2.220.0070.00714.83
7.2.210.0060.00614.88
7.2.200.0000.01214.97
7.2.190.0090.00615.21
7.2.180.0070.01114.78
7.2.170.0000.01115.23
7.2.160.0090.00915.11
7.2.150.0030.01317.01
7.2.140.0140.00317.02
7.2.130.0120.01016.70
7.2.120.0350.00816.80
7.2.110.0190.00316.53
7.2.100.0210.00616.73
7.2.90.0230.00916.64
7.2.80.0120.00916.90
7.2.70.0090.00716.64
7.2.60.0220.00716.88
7.2.50.0140.00816.90
7.2.40.0090.00816.76
7.2.30.0140.00616.34
7.2.20.0180.01216.81
7.2.10.0260.00816.85
7.2.00.0100.00916.80
7.1.330.0040.00415.95
7.1.320.0100.00315.65
7.1.310.0060.00615.76
7.1.300.0090.00915.95
7.1.290.0100.00715.70
7.1.280.0070.01016.02
7.1.270.0030.00915.84
7.1.260.0040.01115.87
7.1.250.0190.00715.74
7.1.200.0000.01315.93
7.1.70.0000.00717.16
7.1.60.0000.01519.40
7.1.50.0090.00917.02
7.1.00.0000.03722.46
7.0.200.0050.00316.89
7.0.140.0000.07721.98
7.0.70.0670.08019.89
7.0.60.0870.08019.84
7.0.50.0870.07320.20
7.0.40.0070.04020.10
7.0.30.0070.07720.01
7.0.20.0070.08020.13
7.0.10.0070.05320.14
7.0.00.0130.08020.16
5.6.280.0000.07321.08
5.6.220.0100.08320.61
5.6.210.0100.08320.55
5.6.200.0100.08721.04
5.6.190.0130.08321.02
5.6.180.0100.08721.00
5.6.170.0070.07721.07
5.6.160.0070.08021.01
5.6.150.0130.07721.00
5.6.140.0070.08021.04
5.6.130.0170.05721.04
5.6.120.0030.06020.93
5.6.110.0030.06020.93
5.6.100.0030.05320.98
5.6.90.0130.07321.02
5.6.80.0000.09320.54
5.6.70.0070.08720.41
5.6.60.0170.07320.46
5.6.50.0030.08320.52
5.6.40.0070.06720.43
5.6.30.0000.08720.38
5.6.20.0130.07320.52
5.6.10.0000.08020.36
5.6.00.0130.07320.35
5.5.360.0100.08320.40
5.5.350.0100.08320.36
5.5.340.0070.04020.82
5.5.330.0030.05720.87
5.5.320.0030.07720.77
5.5.310.0200.07020.87
5.5.300.0030.09020.82
5.5.290.0000.06020.92
5.5.280.0070.06320.89
5.5.270.0100.07320.75
5.5.260.0130.08020.79
5.5.250.0030.08320.71
5.5.240.0070.08020.09
5.5.230.0130.07020.29
5.5.220.0200.07320.13
5.5.210.0070.05320.21
5.5.200.0000.08320.14
5.5.190.0100.05020.12
5.5.180.0170.07320.22
5.5.160.0070.06720.26
5.5.150.0070.07720.23
5.5.140.0100.08020.16
5.5.130.0030.07020.26
5.5.120.0170.06720.14
5.5.110.0100.08020.16
5.5.100.0000.08720.00
5.5.90.0030.05020.11
5.5.80.0070.08320.10
5.5.70.0070.08020.14
5.5.60.0070.08020.00
5.5.50.0000.08320.14
5.5.40.0100.07719.98
5.5.30.0170.06320.02
5.5.20.0130.06020.09
5.5.10.0070.08720.11
5.5.00.0070.06720.11
5.4.450.0070.09019.27
5.4.440.0070.08019.35
5.4.430.0030.04019.40
5.4.420.0030.04319.44
5.4.410.0100.05019.21
5.4.400.0170.06319.23
5.4.390.0130.07018.90
5.4.380.0070.05719.03
5.4.370.0030.05019.14
5.4.360.0000.08719.12
5.4.350.0100.06719.23
5.4.340.0100.07319.12
5.4.320.0070.07718.94
5.4.310.0070.04319.12
5.4.300.0070.08018.94
5.4.290.0070.08018.81
5.4.280.0200.06719.05
5.4.270.0100.04718.89
5.4.260.0000.06318.78
5.4.250.0030.04018.84
5.4.240.0030.08319.09
5.4.230.0100.07719.05
5.4.220.0100.07718.77
5.4.210.0170.06019.09
5.4.200.0030.09019.12
5.4.190.0030.04019.11
5.4.180.0030.08319.01
5.4.170.0100.07718.96
5.4.160.0170.07319.00
5.4.150.0170.05719.02
5.4.140.0170.07316.27
5.4.130.0070.07316.36
5.4.120.0100.06716.26
5.4.110.0100.07316.30
5.4.100.0170.07016.33
5.4.90.0100.06716.36
5.4.80.0070.06316.33
5.4.70.0100.06016.19
5.4.60.0130.07016.27
5.4.50.0030.05316.18
5.4.40.0130.07016.38
5.4.30.0070.07016.17
5.4.20.0200.04716.19
5.4.10.0000.08016.17
5.4.00.0030.07715.79
5.3.290.0070.06714.52
5.3.280.0070.07014.57
5.3.270.0070.07014.58
5.3.260.0030.08314.54
5.3.250.0030.05714.56
5.3.240.0130.07314.56
5.3.230.0130.07014.51
5.3.220.0070.06714.48
5.3.210.0030.07714.52
5.3.200.0070.07714.57
5.3.190.0000.08314.54
5.3.180.0070.07014.39
5.3.170.0100.07714.51
5.3.160.0070.07714.51
5.3.150.0070.06314.42
5.3.140.0070.05014.51
5.3.130.0100.06314.54
5.3.120.0100.06714.40
5.3.110.0030.08314.49
5.3.100.0070.06314.04
5.3.90.0070.07713.99
5.3.80.0100.04013.93
5.3.70.0130.07713.88
5.3.60.0130.07013.86
5.3.50.0070.05313.89
5.3.40.0030.07713.80
5.3.30.0070.05013.77
5.3.20.0030.05313.65
5.3.10.0130.07013.63
5.3.00.0070.07713.64
5.2.170.0000.07312.22
5.2.160.0030.06712.22
5.2.150.0030.05312.22
5.2.140.0000.04312.22
5.2.130.0000.06312.22
5.2.120.0170.05312.22
5.2.110.0070.06012.22
5.2.100.0070.05712.22
5.2.90.0070.05312.22
5.2.80.0130.03712.22
5.2.70.0070.05312.22
5.2.60.0070.06012.22
5.2.50.0030.03712.22
5.2.40.0030.03012.22
5.2.30.0030.05012.22
5.2.20.0030.06312.22
5.2.10.0070.04712.22
5.2.00.0130.04312.22
5.1.60.0070.05312.22
5.1.50.0000.05712.22
5.1.40.0070.04312.22
5.1.30.0030.04712.22
5.1.20.0100.03712.22
5.1.10.0030.05712.22
5.1.00.0100.05012.22
5.0.50.0000.05012.22
5.0.40.0000.04712.22
5.0.30.0070.05312.22
5.0.20.0030.04012.22
5.0.10.0000.04312.22
5.0.00.0000.06712.22
4.4.90.0000.03012.22
4.4.80.0030.02012.22
4.4.70.0000.03712.22
4.4.60.0000.03712.22
4.4.50.0030.03712.22
4.4.40.0030.04712.22
4.4.30.0030.03712.22
4.4.20.0000.03712.22
4.4.10.0000.03712.22
4.4.00.0000.05312.22
4.3.110.0000.03712.22
4.3.100.0000.03712.22
4.3.90.0070.02712.22
4.3.80.0070.05012.22
4.3.70.0030.03012.22
4.3.60.0030.02012.22
4.3.50.0030.02312.22
4.3.40.0000.05712.22
4.3.30.0000.02712.22
4.3.20.0000.03712.22
4.3.10.0000.03712.22
4.3.00.0000.03312.22

preferences:
45.92 ms | 401 KiB | 5 Q