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>'; preg_match_all("/(?<=href=\")[^\"]+(?=\")/", $url, $match); var_dump($match); 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.0110.00718.31
8.3.50.0110.00922.06
8.3.40.0040.01118.96
8.3.30.0000.01419.15
8.3.20.0080.00020.29
8.3.10.0060.00323.66
8.3.00.0060.00322.24
8.2.180.0090.00616.50
8.2.170.0170.00022.96
8.2.160.0110.00322.21
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0060.00319.36
8.2.110.0070.00420.52
8.2.100.0040.00718.03
8.2.90.0030.00619.27
8.2.80.0050.00517.97
8.2.70.0040.00417.75
8.2.60.0040.00418.04
8.2.50.0000.00818.10
8.2.40.0040.00717.97
8.2.30.0000.00818.02
8.2.20.0040.00417.70
8.2.10.0000.00817.79
8.2.00.0070.00017.81
8.1.280.0140.00725.92
8.1.270.0080.00022.18
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.01023.90
8.1.230.0040.00720.94
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0090.00017.35
8.1.180.0030.00618.10
8.1.170.0000.00818.77
8.1.160.0030.00622.04
8.1.150.0000.00818.74
8.1.140.0030.00517.61
8.1.130.0040.00417.93
8.1.120.0040.00417.59
8.1.110.0000.00817.52
8.1.100.0000.00717.44
8.1.90.0060.00217.59
8.1.80.0040.00417.41
8.1.70.0070.00017.59
8.1.60.0040.00417.68
8.1.50.0030.00617.60
8.1.40.0040.00417.64
8.1.30.0060.00317.70
8.1.20.0000.00817.77
8.1.10.0040.00417.67
8.1.00.0050.00317.60
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0070.00018.39
8.0.270.0030.00517.23
8.0.260.0000.00716.98
8.0.250.0000.00717.14
8.0.240.0030.00417.14
8.0.230.0030.00317.04
8.0.220.0000.00717.00
8.0.210.0040.00416.90
8.0.200.0030.00317.04
8.0.190.0070.00017.02
8.0.180.0000.00717.00
8.0.170.0040.00416.93
8.0.160.0000.00817.04
8.0.150.0030.00316.97
8.0.140.0000.00716.86
8.0.130.0070.00013.48
8.0.120.0020.00516.98
8.0.110.0030.00516.93
8.0.100.0040.00417.05
8.0.90.0000.00716.98
8.0.80.0100.00717.02
8.0.70.0040.00417.00
8.0.60.0040.00417.04
8.0.50.0040.00416.77
8.0.30.0100.01217.20
8.0.20.0100.01117.43
8.0.10.0000.00817.14
8.0.00.0110.00716.80
7.4.330.0030.00215.04
7.4.320.0070.00016.66
7.4.300.0070.00016.64
7.4.290.0040.00416.75
7.4.280.0000.00716.61
7.4.270.0030.00316.75
7.4.260.0070.00016.67
7.4.250.0050.00216.63
7.4.240.0010.00616.66
7.4.230.0000.00716.65
7.4.220.0090.00616.87
7.4.210.0030.01116.68
7.4.200.0000.00716.70
7.4.190.0040.00416.76
7.4.160.0080.00816.73
7.4.150.0090.00917.40
7.4.140.0120.00517.86
7.4.130.0110.00716.74
7.4.120.0130.00616.76
7.4.110.0120.00616.68
7.4.100.0090.00916.65
7.4.90.0120.01316.69
7.4.80.0130.00516.61
7.4.70.0120.00616.63
7.4.60.0150.00316.47
7.4.50.0000.00816.35
7.4.40.0070.01122.77
7.4.30.0000.01616.63
7.4.00.0030.01015.19
7.3.330.0050.00013.13
7.3.320.0030.00313.21
7.3.310.0030.00316.45
7.3.300.0000.00716.34
7.3.290.0120.00316.26
7.3.280.0130.00316.26
7.3.270.0080.00817.40
7.3.260.0100.00716.37
7.3.250.0120.01016.59
7.3.240.0090.00916.52
7.3.230.0110.01116.39
7.3.210.0070.01116.46
7.3.200.0060.00619.39
7.3.190.0070.01616.68
7.3.180.0040.01916.55
7.3.170.0120.00616.71
7.3.160.0110.00516.38
7.3.120.0080.00814.97
7.2.330.0050.01216.50
7.2.320.0090.00916.58
7.2.310.0110.01116.47
7.2.300.0040.01416.70
7.2.290.0060.01016.59
7.2.60.0100.00017.09
7.2.00.0030.01019.70
7.1.200.0030.00915.80
7.1.100.0040.00718.16
7.1.70.0000.00917.32
7.1.60.0110.01119.32
7.1.50.0100.01316.98
7.1.00.0070.07022.53
7.0.200.0070.01016.94
7.0.140.0030.07321.91
7.0.100.0170.04719.89
7.0.90.0100.03719.99
7.0.80.0100.05719.85
7.0.70.0000.04019.98
7.0.60.0130.03320.02
7.0.50.0100.03720.39
7.0.40.0030.04020.17
7.0.30.0070.03320.14
7.0.20.0070.04719.95
7.0.10.0070.03019.99
7.0.00.0100.03320.18
5.6.280.0000.07720.78
5.6.250.0030.04020.66
5.6.240.0070.04020.75
5.6.230.0030.04720.59
5.6.220.0000.04320.67
5.6.210.0030.03720.76
5.6.200.0030.04020.95
5.6.190.0030.04320.93
5.6.180.0070.03021.03
5.6.170.0030.03721.10
5.6.160.0070.03721.01
5.6.150.0000.03721.04
5.6.140.0030.03321.00
5.6.130.0100.03021.04
5.6.120.0100.03721.12
5.6.110.0070.03720.92
5.6.100.0070.06321.04
5.6.90.0130.08020.92
5.6.80.0030.08020.34
5.6.70.0100.05720.32
5.6.60.0070.05020.32
5.6.50.0000.05020.28
5.6.40.0030.04320.52
5.6.30.0070.04320.43
5.6.20.0100.05320.46
5.6.10.0030.04020.26
5.6.00.0130.06720.43
5.5.380.0070.04720.56
5.5.370.0070.03020.56
5.5.360.0070.04020.48
5.5.350.0000.04020.41
5.5.340.0070.03320.91
5.5.330.0070.03320.73
5.5.320.0100.02720.82
5.5.310.0070.04020.78
5.5.300.0030.03320.64
5.5.290.0000.03720.75
5.5.280.0000.04020.64
5.5.270.0030.03720.79
5.5.260.0100.03020.76
5.5.250.0030.08320.70
5.5.240.0070.06020.20
5.5.230.0070.07720.30
5.5.220.0070.03720.13
5.5.210.0070.03720.30
5.5.200.0100.03320.17
5.5.190.0030.04020.26
5.5.180.0070.03720.21
5.5.160.0100.04720.14
5.5.150.0070.06320.18
5.5.140.0030.04320.21
5.5.130.0130.07020.22
5.5.120.0000.08320.10
5.5.110.0070.04320.23
5.5.100.0030.03720.16
5.5.90.0000.04020.05
5.5.80.0070.03720.00
5.5.70.0030.06720.08
5.5.60.0070.04019.93
5.5.50.0100.07320.05
5.5.40.0100.03719.99
5.5.30.0100.07720.06
5.5.20.0030.05020.02
5.5.10.0000.05319.96
5.5.00.0030.06020.11
5.4.450.0100.02719.45
5.4.440.0070.03719.11
5.4.430.0030.03319.29
5.4.420.0100.06319.22
5.4.410.0170.06319.10
5.4.400.0070.07019.06
5.4.390.0030.07018.81
5.4.380.0000.04019.14
5.4.370.0030.07718.98
5.4.360.0030.07719.06
5.4.350.0030.03719.18
5.4.340.0000.05319.05
5.4.320.0100.07019.07
5.4.310.0030.05019.12
5.4.300.0100.07018.97
5.4.290.0100.06319.00
5.4.280.0070.06019.02
5.4.270.0030.03718.96
5.4.260.0070.03718.94
5.4.250.0000.07318.95
5.4.240.0070.04019.11
5.4.230.0100.07319.22
5.4.220.0100.08318.94
5.4.210.0030.07319.14
5.4.200.0100.07718.80
5.4.190.0100.06718.77
5.4.180.0000.08318.96
5.4.170.0070.07718.77
5.4.160.0100.07018.95
5.4.150.0130.06019.00
5.4.140.0070.07016.42
5.4.130.0030.06716.28
5.4.120.0070.06016.39
5.4.110.0070.04316.48
5.4.100.0000.08316.29
5.4.90.0030.07716.54
5.4.80.0000.05016.21
5.4.70.0070.05316.20
5.4.60.0030.04016.32
5.4.50.0070.07016.41
5.4.40.0100.07016.25
5.4.30.0030.05316.18
5.4.20.0030.07716.20
5.4.10.0030.03316.23
5.4.00.0070.05315.70
5.3.290.0000.07714.63
5.3.280.0130.06714.45
5.3.270.0000.07014.60
5.3.260.0030.06314.54
5.3.250.0070.07314.52
5.3.240.0030.04714.49
5.3.230.0100.07314.50
5.3.220.0000.04714.55
5.3.210.0030.04014.48
5.3.200.0100.06714.43
5.3.190.0100.07014.57
5.3.180.0100.07314.51
5.3.170.0100.07014.55
5.3.160.0030.05314.42
5.3.150.0000.06714.57
5.3.140.0030.07314.39
5.3.130.0000.04014.55
5.3.120.0030.07314.54
5.3.110.0000.08314.50
5.3.100.0100.06014.00
5.3.90.0100.05313.96
5.3.80.0030.03713.88
5.3.70.0070.07714.01
5.3.60.0100.06713.95
5.3.50.0100.03013.91
5.3.40.0130.06313.92
5.3.30.0000.08013.91
5.3.20.0000.03713.68
5.3.10.0030.05013.51
5.3.00.0030.07313.64
5.2.170.0030.06312.85
5.2.160.0000.04012.85
5.2.150.0070.06312.85
5.2.140.0070.06012.85
5.2.130.0070.06312.85
5.2.120.0030.05312.85
5.2.110.0030.04012.85
5.2.100.0030.06012.85
5.2.90.0000.03012.85
5.2.80.0030.05712.85
5.2.70.0030.04012.85
5.2.60.0000.04012.85
5.2.50.0030.04712.85
5.2.40.0030.05012.85
5.2.30.0100.02012.85
5.2.20.0030.06012.85
5.2.10.0030.06312.85
5.2.00.0070.04712.85
5.1.60.0000.02712.85
5.1.50.0070.04712.85
5.1.40.0100.04712.85
5.1.30.0000.02712.85
5.1.20.0030.03712.85
5.1.10.0030.05312.85
5.1.00.0100.04712.85
5.0.50.0030.03012.85
5.0.40.0070.03012.85
5.0.30.0000.03012.85
5.0.20.0000.04312.85
5.0.10.0000.02312.85
5.0.00.0030.05712.85
4.4.90.0070.03012.85
4.4.80.0030.03012.85
4.4.70.0000.02312.85
4.4.60.0070.03312.85
4.4.50.0000.02012.85
4.4.40.0030.05012.85
4.4.30.0030.03312.85
4.4.20.0030.01012.85
4.4.10.0000.02312.85
4.4.00.0100.04712.85
4.3.110.0030.01712.85
4.3.100.0000.03012.85
4.3.90.0000.02712.85
4.3.80.0000.03712.85
4.3.70.0000.01712.85
4.3.60.0000.01712.85
4.3.50.0000.02312.85
4.3.40.0000.04012.85
4.3.30.0000.01712.85
4.3.20.0000.02012.85
4.3.10.0000.01712.85
4.3.00.0000.01712.85

preferences:
56.06 ms | 401 KiB | 5 Q