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.0120.00318.52
8.3.50.0150.00722.11
8.3.40.0120.00319.00
8.3.30.0120.00318.79
8.3.20.0030.00518.90
8.3.10.0080.00020.66
8.3.00.0040.00423.48
8.2.180.0140.00416.50
8.2.170.0120.00322.96
8.2.160.0130.00322.29
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.71
8.2.110.0000.00921.08
8.2.100.0040.00817.91
8.2.90.0080.00019.22
8.2.80.0050.00317.97
8.2.70.0030.00617.88
8.2.60.0000.00817.91
8.2.50.0000.00918.07
8.2.40.0040.00418.22
8.2.30.0000.00719.80
8.2.20.0040.00417.95
8.2.10.0040.00417.66
8.2.00.0040.00417.79
8.1.280.0070.01425.92
8.1.270.0080.00023.99
8.1.260.0070.01026.35
8.1.250.0060.00328.09
8.1.240.0090.00021.31
8.1.230.0120.00017.58
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0030.00717.00
8.1.180.0050.00318.10
8.1.170.0040.00418.77
8.1.160.0030.00518.77
8.1.150.0000.00918.85
8.1.140.0070.00017.55
8.1.130.0070.00017.82
8.1.120.0000.00717.53
8.1.110.0000.00717.57
8.1.100.0000.00817.46
8.1.90.0030.00317.57
8.1.80.0040.00417.53
8.1.70.0000.00717.50
8.1.60.0060.00317.69
8.1.50.0040.00417.55
8.1.40.0000.00817.63
8.1.30.0090.00017.73
8.1.20.0030.00617.80
8.1.10.0080.00017.57
8.1.00.0040.00417.59
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0050.00318.48
8.0.270.0070.00017.22
8.0.260.0030.00316.97
8.0.250.0040.00417.14
8.0.240.0050.00217.12
8.0.230.0070.00316.99
8.0.220.0040.00416.91
8.0.210.0000.00716.96
8.0.200.0000.00717.05
8.0.190.0040.00417.03
8.0.180.0000.00717.05
8.0.170.0050.00216.96
8.0.160.0070.00017.07
8.0.150.0030.00616.82
8.0.140.0000.00816.85
8.0.130.0030.00313.42
8.0.120.0040.00416.99
8.0.110.0040.00417.09
8.0.100.0000.00716.94
8.0.90.0020.00517.02
8.0.80.0100.01017.08
8.0.70.0030.00516.93
8.0.60.0050.00216.96
8.0.50.0050.00216.89
8.0.30.0140.00917.27
8.0.20.0080.01417.47
8.0.10.0000.00717.01
8.0.00.0090.00916.86
7.4.330.0050.00014.88
7.4.320.0030.00316.66
7.4.300.0000.00716.63
7.4.290.0030.00316.56
7.4.280.0040.00416.77
7.4.270.0000.00716.77
7.4.260.0040.00413.31
7.4.250.0050.00316.66
7.4.240.0040.00416.70
7.4.230.0030.00316.74
7.4.220.0160.00616.66
7.4.210.0070.00916.73
7.4.200.0080.00016.64
7.4.190.0030.00316.84
7.4.160.0080.00816.42
7.4.150.0100.01017.40
7.4.140.0070.01417.86
7.4.130.0140.00616.75
7.4.120.0130.00816.65
7.4.110.0120.00616.73
7.4.100.0200.00616.59
7.4.90.0120.01216.55
7.4.80.0100.00719.04
7.4.70.0120.00916.54
7.4.60.0140.00316.67
7.4.50.0030.00616.63
7.4.40.0100.00622.27
7.4.30.0070.01116.49
7.4.00.0070.01015.08
7.3.330.0000.00513.23
7.3.320.0000.00513.11
7.3.310.0000.00716.22
7.3.300.0000.00716.25
7.3.290.0120.00916.35
7.3.280.0090.01016.32
7.3.270.0180.00017.40
7.3.260.0120.00718.24
7.3.250.0100.01316.53
7.3.240.0080.01116.37
7.3.230.0060.01016.39
7.3.210.0160.00316.39
7.3.200.0040.01619.39
7.3.190.0110.01116.77
7.3.180.0110.00516.72
7.3.170.0100.00716.34
7.3.160.0120.00416.59
7.3.120.0090.00814.85
7.3.110.0050.01314.91
7.3.100.0020.01214.95
7.3.90.0020.00914.95
7.3.80.0040.00714.99
7.3.70.0090.00414.79
7.3.60.0070.00514.84
7.3.50.0090.00514.90
7.3.40.0030.01014.85
7.3.30.0050.00814.86
7.3.20.0030.00816.73
7.3.10.0080.00816.60
7.3.00.0110.00616.58
7.2.330.0110.00716.66
7.2.320.0000.01716.66
7.2.310.0060.01316.60
7.2.300.0090.01316.63
7.2.290.0110.00616.76
7.2.250.0090.00815.25
7.2.240.0030.01515.16
7.2.230.0060.00615.06
7.2.220.0020.01015.00
7.2.210.0070.00615.18
7.2.200.0050.00815.14
7.2.190.0070.00715.07
7.2.180.0090.00715.05
7.2.170.0040.00815.09
7.2.130.0110.00816.57
7.2.120.0080.00916.62
7.2.110.0070.01016.76
7.2.100.0080.01216.72
7.2.90.0090.00916.41
7.2.80.0080.00916.85
7.2.70.0140.00716.68
7.2.60.0100.00616.83
7.2.50.0070.01116.77
7.2.40.0120.00616.75
7.2.30.0150.00316.89
7.2.20.0070.01016.64
7.2.10.0120.00816.78
7.2.00.0100.00817.78
7.1.330.0070.00715.91
7.1.320.0060.00615.67
7.1.310.0030.00915.82
7.1.300.0070.00915.88
7.1.290.0040.00815.60
7.1.280.0070.00615.93
7.1.270.0060.00815.95
7.1.260.0040.00915.96
7.1.250.0080.00815.58
7.1.100.0070.00418.05
7.1.70.0000.01017.24
7.1.60.0070.01419.40
7.1.50.0030.00717.06
7.1.00.0030.07322.55
7.0.200.0000.00716.83
7.0.140.0070.07021.96
7.0.60.0030.08719.78
7.0.50.0000.04717.92
7.0.40.0000.05317.72
7.0.30.0030.07717.80
7.0.20.0100.08317.80
7.0.10.0170.07317.73
7.0.00.0130.06717.67
5.6.280.0000.07321.12
5.6.210.0200.07320.69
5.6.200.0030.08318.21
5.6.190.0070.08018.18
5.6.180.0070.08718.21
5.6.170.0170.07718.17
5.6.160.0030.06018.22
5.6.150.0070.05718.22
5.6.140.0070.06718.11
5.6.130.0030.05018.21
5.6.120.0000.05718.11
5.6.110.0130.07318.18
5.6.100.0070.07718.14
5.6.90.0130.07318.10
5.6.80.0070.07017.51
5.6.70.0030.07717.50
5.6.60.0070.08017.53
5.6.50.0100.07717.60
5.6.40.0030.07317.44
5.6.30.0070.07717.45
5.6.20.0100.07717.51
5.6.10.0070.06717.47
5.6.00.0100.05317.45
5.5.350.0270.06720.45
5.5.340.0030.08317.96
5.5.330.0070.05717.89
5.5.320.0030.08317.90
5.5.310.0130.07718.01
5.5.300.0030.06317.98
5.5.290.0100.07717.92
5.5.280.0130.07017.98
5.5.270.0070.07718.00
5.5.260.0070.08317.88
5.5.250.0030.04317.72
5.5.240.0030.05317.30
5.5.230.0130.04317.26
5.5.220.0070.05317.29
5.5.210.0030.07017.34
5.5.200.0100.07017.27
5.5.190.0100.06317.36
5.5.180.0070.06017.30
5.5.160.0030.04017.27
5.5.150.0130.04717.26
5.5.140.0070.03717.25
5.5.130.0130.07017.31
5.5.120.0030.07017.27
5.5.110.0000.05317.33
5.5.100.0130.06717.27
5.5.90.0070.07317.20
5.5.80.0130.07317.15
5.5.70.0070.08017.17
5.5.60.0070.08017.26
5.5.50.0070.06317.11
5.5.40.0070.07317.22
5.5.30.0070.05717.21
5.5.20.0130.06017.25
5.5.10.0030.07017.18
5.5.00.0070.06017.19
5.4.450.0070.06319.34
5.4.440.0000.08719.21
5.4.430.0100.07319.30
5.4.420.0170.04019.33
5.4.410.0070.07319.18
5.4.400.0100.06718.96
5.4.390.0000.04318.98
5.4.380.0130.03318.98
5.4.370.0130.07019.12
5.4.360.0170.07019.01
5.4.350.0100.07019.12
5.4.340.0030.08018.95
5.4.320.0030.06318.98
5.4.310.0100.07019.03
5.4.300.0070.04718.98
5.4.290.0030.08319.03
5.4.280.0100.07318.95
5.4.270.0030.05718.98
5.4.260.0130.08718.82
5.4.250.0200.06719.08
5.4.240.0070.07318.98
5.4.230.0070.08018.89
5.4.220.0030.05719.12
5.4.210.0130.05719.11
5.4.200.0070.04318.98
5.4.190.0030.07719.08
5.4.180.0170.06719.01
5.4.170.0130.06718.95
5.4.160.0070.08318.96
5.4.150.0070.07718.98
5.4.140.0100.07316.35
5.4.130.0070.05716.30
5.4.120.0200.06016.49
5.4.110.0070.06016.39
5.4.100.0100.07016.30
5.4.90.0100.06316.30
5.4.80.0030.07316.20
5.4.70.0070.06716.41
5.4.60.0000.04316.25
5.4.50.0100.06316.34
5.4.40.0030.03716.32
5.4.30.0100.03016.32
5.4.20.0000.03716.29
5.4.10.0030.03716.33
5.4.00.0000.03715.76
5.3.290.0030.05314.75
5.3.280.0070.05014.56
5.3.270.0070.08014.57
5.3.260.0000.08314.54
5.3.250.0130.07014.58
5.3.240.0130.07014.56
5.3.230.0030.07714.52
5.3.220.0100.04014.39
5.3.210.0030.08314.48
5.3.200.0000.08014.42
5.3.190.0070.08014.54
5.3.180.0100.06714.34
5.3.170.0070.08014.52
5.3.160.0100.04014.48
5.3.150.0070.03714.64
5.3.140.0100.04014.41
5.3.130.0030.03714.52
5.3.120.0070.03314.47
5.3.110.0030.03714.50
5.3.100.0030.03713.97
5.3.90.0030.03714.00
5.3.80.0070.04014.00
5.3.70.0070.03313.98
5.3.60.0030.03713.95
5.3.50.0030.03313.88
5.3.40.0000.03714.02
5.3.30.0000.03713.88
5.3.20.0000.03713.61
5.3.10.0100.02713.50
5.3.00.0000.03713.71
5.2.170.0030.02711.09
5.2.160.0000.03011.15
5.2.150.0030.02710.97
5.2.140.0000.03011.09
5.2.130.0000.03011.07
5.2.120.0000.03010.90
5.2.110.0000.03011.07
5.2.100.0030.02711.10
5.2.90.0030.02711.24
5.2.80.0030.02711.23
5.2.70.0000.03011.06
5.2.60.0030.02711.04
5.2.50.0070.02310.96
5.2.40.0070.02310.95
5.2.30.0000.03010.95
5.2.20.0030.02710.80
5.2.10.0000.03010.86
5.2.00.0070.02310.63
5.1.60.0000.02310.05
5.1.50.0000.02310.02
5.1.40.0030.03310.00
5.1.30.0000.02710.30
5.1.20.0070.02010.39
5.1.10.0000.02710.05
5.1.00.0030.0239.89
5.0.50.0070.0138.59
5.0.40.0070.0208.37
5.0.30.0030.0278.21
5.0.20.0000.0208.26
5.0.10.0030.0178.23
5.0.00.0000.0308.13
4.4.90.0000.0177.59
4.4.80.0000.0137.59
4.4.70.0000.0177.59
4.4.60.0000.0177.59
4.4.50.0000.0137.59
4.4.40.0000.0237.59
4.4.30.0000.0177.59
4.4.20.0000.0177.59
4.4.10.0000.0137.59
4.4.00.0000.0237.59
4.3.110.0000.0137.59
4.3.100.0030.0177.59
4.3.90.0000.0137.59
4.3.80.0000.0237.59
4.3.70.0000.0237.59
4.3.60.0030.0237.59
4.3.50.0070.0337.59
4.3.40.0000.0607.59
4.3.30.0000.0377.59
4.3.20.0000.0337.59
4.3.10.0000.0277.59
4.3.00.0070.0307.59

preferences:
38.5 ms | 401 KiB | 5 Q