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=(\"|\'))(.+)(\'|\")/", "\3&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.0040.01116.63
8.3.50.0090.00817.46
8.3.40.0070.00718.88
8.3.30.0150.00018.92
8.3.20.0040.00418.82
8.3.10.0000.00820.36
8.3.00.0070.00319.51
8.2.180.0140.00716.63
8.2.170.0030.01722.96
8.2.160.0130.00721.21
8.2.150.0060.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00019.50
8.2.110.0060.00321.15
8.2.100.0080.00418.03
8.2.90.0080.00019.17
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0000.00818.04
8.2.50.0050.00318.10
8.2.40.0050.00318.16
8.2.30.0000.00718.08
8.2.20.0000.00817.81
8.2.10.0050.00317.77
8.2.00.0080.00017.88
8.1.280.0090.00625.92
8.1.270.0000.00824.66
8.1.260.0150.00026.35
8.1.250.0030.00628.09
8.1.240.0080.00022.52
8.1.230.0090.00320.96
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0000.00818.96
8.1.160.0000.00818.91
8.1.150.0000.00818.65
8.1.140.0040.00417.52
8.1.130.0030.00317.86
8.1.120.0040.00417.47
8.1.110.0040.00417.57
8.1.100.0040.00417.49
8.1.90.0020.00517.57
8.1.80.0070.00017.51
8.1.70.0030.00317.54
8.1.60.0060.00317.58
8.1.50.0040.00417.54
8.1.40.0000.00717.63
8.1.30.0040.00417.67
8.1.20.0040.00417.82
8.1.10.0040.00417.54
8.1.00.0000.00817.59
8.0.300.0070.00019.02
8.0.290.0060.00316.88
8.0.280.0050.00218.52
8.0.270.0070.00017.28
8.0.260.0030.00316.93
8.0.250.0040.00417.11
8.0.240.0040.00417.00
8.0.230.0000.00717.06
8.0.220.0050.00316.98
8.0.210.0050.00217.00
8.0.200.0000.00616.94
8.0.190.0050.00216.95
8.0.180.0000.00717.07
8.0.170.0040.00417.02
8.0.160.0000.00817.00
8.0.150.0040.00416.97
8.0.140.0060.00516.85
8.0.130.0000.00613.39
8.0.120.0050.00316.99
8.0.110.0000.00816.90
8.0.100.0000.00917.10
8.0.90.0000.00716.89
8.0.80.0100.00316.94
8.0.70.0040.00416.81
8.0.60.0070.00016.88
8.0.50.0000.00716.86
8.0.30.0080.01017.21
8.0.20.0130.00517.26
8.0.10.0080.00016.92
8.0.00.0100.01016.88
7.4.330.0000.00513.21
7.4.320.0040.00416.77
7.4.300.0000.00716.59
7.4.290.0000.00716.77
7.4.280.0090.00016.76
7.4.270.0050.00316.77
7.4.260.0060.00013.42
7.4.250.0030.00616.71
7.4.240.0030.00316.67
7.4.230.0030.00316.57
7.4.220.0030.01616.71
7.4.210.0080.01016.67
7.4.200.0040.00416.57
7.4.190.0000.00716.76
7.4.160.0080.00816.61
7.4.150.0140.00416.66
7.4.140.0090.00816.68
7.4.130.0080.01016.74
7.4.120.0080.01216.76
7.4.110.0120.00616.62
7.4.100.0070.01116.59
7.4.90.0090.01216.65
7.4.80.0060.01219.39
7.4.70.0080.01416.86
7.4.60.0050.01316.79
7.4.50.0090.00016.50
7.4.40.0060.00616.82
7.4.30.0070.01016.86
7.4.00.0120.00615.21
7.3.330.0000.00613.20
7.3.320.0050.00013.00
7.3.310.0030.00316.23
7.3.300.0070.00016.20
7.3.290.0100.00616.32
7.3.280.0050.01116.33
7.3.270.0100.00716.52
7.3.260.0120.00516.34
7.3.250.0050.01216.35
7.3.240.0160.00316.60
7.3.230.0080.00816.56
7.3.210.0070.01016.57
7.3.200.0100.01316.42
7.3.190.0130.00916.44
7.3.180.0090.00616.41
7.3.170.0070.01016.61
7.3.160.0140.00716.36
7.3.120.0040.00914.85
7.3.110.0060.00915.04
7.3.100.0040.01215.09
7.3.90.0080.00814.96
7.3.80.0000.01414.50
7.3.70.0000.01514.86
7.3.60.0060.00615.00
7.3.50.0030.01014.75
7.3.40.0060.00814.94
7.3.30.0040.01214.75
7.3.20.0070.00716.57
7.3.10.0060.00916.90
7.3.00.0130.00316.73
7.2.330.0080.00816.55
7.2.320.0130.00316.68
7.2.310.0110.00716.66
7.2.300.0130.01016.66
7.2.290.0030.01416.66
7.2.250.0030.01315.28
7.2.240.0030.01714.96
7.2.230.0040.01215.29
7.2.220.0030.00615.18
7.2.210.0000.01614.86
7.2.200.0100.01014.87
7.2.190.0070.00315.20
7.2.180.0030.01015.24
7.2.170.0060.00915.05
7.2.160.0000.01415.02
7.2.150.0030.00716.99
7.2.140.0030.00916.81
7.2.130.0000.01516.90
7.2.120.0030.00816.80
7.2.110.0070.00717.14
7.2.100.0000.01316.92
7.2.90.0030.01217.13
7.2.80.0000.01216.75
7.2.70.0060.00617.09
7.2.60.0030.01216.89
7.2.50.0110.00016.99
7.2.40.0030.00916.99
7.2.30.0030.01016.79
7.2.20.0060.00617.01
7.2.10.0110.00716.80
7.2.00.0080.00618.16
7.1.330.0030.00915.74
7.1.320.0070.00716.09
7.1.310.0080.00816.14
7.1.300.0070.00715.90
7.1.290.0120.00315.86
7.1.280.0110.00015.88
7.1.270.0030.00615.68
7.1.260.0090.00315.54
7.1.250.0070.00715.74
7.1.100.0000.01118.54
7.1.70.0040.00717.23
7.1.60.0170.00319.40
7.1.50.0060.01317.13
7.1.00.0000.04722.43
7.0.200.0040.00416.71
7.0.140.0030.07022.00
7.0.120.0030.07322.13
7.0.60.0070.06320.05
7.0.50.0170.07317.80
7.0.40.0130.07020.14
7.0.30.0200.03720.06
7.0.20.0230.08020.11
7.0.10.0130.04720.14
7.0.00.0030.09020.02
5.6.210.0100.06720.43
5.6.200.0070.08018.18
5.6.190.0000.04720.61
5.6.180.0170.03720.27
5.6.170.0300.07720.54
5.6.160.0070.04320.48
5.6.150.0030.06318.20
5.6.140.0070.08318.20
5.6.130.0070.07718.16
5.6.120.0000.06020.98
5.6.110.0070.07721.00
5.6.100.0070.07720.96
5.6.90.0070.09021.00
5.6.80.0100.07320.50
5.5.350.0030.08320.41
5.5.340.0030.04317.91
5.5.330.0100.04720.48
5.5.320.0000.08720.32
5.5.310.0200.03720.34
5.5.300.0030.04017.98
5.5.290.0130.04717.89
5.5.280.0030.04320.87
5.5.270.0000.04320.75
5.5.260.0030.04320.93
5.5.250.0030.06020.43
5.5.240.0330.07320.11
5.4.450.0070.08019.24
5.4.440.0070.07719.11
5.4.430.0030.04719.11
5.4.420.0130.08019.50
5.4.410.0170.06719.37
5.4.400.0130.07019.08
5.4.390.0100.07318.91
5.4.380.0030.05019.18
5.4.370.0200.06719.11
5.4.360.0100.07318.78
5.4.350.0070.07719.00
5.4.340.0000.05019.09
5.4.320.0100.06019.13
5.4.310.0070.03719.14
5.4.300.0070.07719.07
5.4.290.0070.08019.17
5.4.280.0000.08719.17
5.4.270.0130.07719.00
5.4.260.0200.06718.79
5.4.250.0100.07719.00
5.4.240.0070.06718.78
5.4.230.0000.08719.14
5.4.220.0030.05719.15
5.4.210.0130.07019.14
5.4.200.0030.07719.07
5.4.190.0100.05019.18
5.4.180.0130.04718.91
5.4.170.0130.03018.90
5.4.160.0130.04019.12
5.4.150.0030.04018.89
5.4.140.0070.03716.25
5.4.130.0030.05316.32
5.4.120.0000.07016.34
5.4.110.0000.05316.25
5.4.100.0100.07316.60
5.4.90.0030.05016.36
5.4.80.0030.06016.36
5.4.70.0070.06316.39
5.4.60.0130.06016.34
5.4.50.0000.05716.26
5.4.40.0030.03716.58
5.4.30.0000.04016.21
5.4.20.0030.04316.23
5.4.10.0170.06716.25
5.4.00.0130.05315.74
5.3.290.0200.03314.60
5.3.280.0070.05714.47
5.3.270.0000.05314.53
5.3.260.0130.03014.57
5.3.250.0100.03714.55
5.3.240.0000.08314.57
5.3.230.0000.04314.52
5.3.220.0030.08014.49
5.3.210.0030.04714.54
5.3.200.0030.07014.54
5.3.190.0100.07014.50
5.3.180.0130.07014.50
5.3.170.0030.06714.66
5.3.160.0130.07014.52
5.3.150.0070.05014.38
5.3.140.0030.05014.48
5.3.130.0100.06014.42
5.3.120.0000.04314.50
5.3.110.0070.07714.51
5.3.100.0130.03714.13
5.3.90.0100.06714.12
5.3.80.0000.06713.94
5.3.70.0170.06314.11
5.3.60.0100.07313.84
5.3.50.0130.04713.88
5.3.40.0070.07013.78
5.3.30.0000.04313.83
5.3.20.0070.07313.63
5.3.10.0130.06713.48
5.3.00.0100.06013.46
5.2.170.0100.05711.15
5.2.160.0070.04311.30
5.2.150.0000.03711.13
5.2.140.0000.06711.02
5.2.130.0000.04311.07
5.2.120.0030.05711.09
5.2.110.0000.04010.98
5.2.100.0030.06311.04
5.2.90.0030.06311.00
5.2.80.0030.06011.03
5.2.70.0100.05711.03
5.2.60.0030.05710.98
5.2.50.0130.05010.98
5.2.40.0130.05710.89
5.2.30.0030.05010.83
5.2.20.0000.06710.90
5.2.10.0100.04310.86
5.2.00.0070.03310.69
5.1.60.0070.0309.96
5.1.50.0000.0439.91
5.1.40.0030.0539.88
5.1.30.0030.05710.38
5.1.20.0000.06010.35
5.1.10.0000.0409.90
5.1.00.0030.02710.06
5.0.50.0070.0208.52
5.0.40.0000.0238.52
5.0.30.0000.0638.52
5.0.20.0070.0278.52
5.0.10.0030.0438.52
5.0.00.0030.0708.52
4.4.90.0000.0408.52
4.4.80.0030.0338.52
4.4.70.0100.0178.52
4.4.60.0030.0338.52
4.4.50.0000.0378.52
4.4.40.0030.0438.52
4.4.30.0000.0378.52
4.4.20.0030.0278.52
4.4.10.0000.0238.52
4.4.00.0000.0578.52
4.3.110.0000.0278.52
4.3.100.0000.0208.52
4.3.90.0000.0208.52
4.3.80.0000.0478.52
4.3.70.0030.0378.52
4.3.60.0030.0138.52
4.3.50.0030.0138.52
4.3.40.0030.0208.52
4.3.30.0000.0178.52
4.3.20.0000.0178.52
4.3.10.0000.0178.52
4.3.00.0030.0238.52

preferences:
35.37 ms | 401 KiB | 5 Q