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.0130.00316.75
8.3.50.0130.00817.46
8.3.40.0120.00318.82
8.3.30.0120.00318.84
8.3.20.0050.00318.90
8.3.10.0080.00018.98
8.3.00.0030.00619.38
8.2.180.0100.00718.66
8.2.170.0110.00422.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00021.02
8.2.110.0090.00021.25
8.2.100.0040.00718.22
8.2.90.0000.00917.88
8.2.80.0050.00317.97
8.2.70.0000.00817.68
8.2.60.0080.00018.03
8.2.50.0030.00618.10
8.2.40.0030.00619.35
8.2.30.0000.00719.10
8.2.20.0040.00817.77
8.2.10.0040.00417.85
8.2.00.0000.01017.65
8.1.280.0170.00325.92
8.1.270.0060.00323.99
8.1.260.0030.00526.35
8.1.250.0090.00028.09
8.1.240.0060.00322.52
8.1.230.0110.00017.70
8.1.220.0000.00817.79
8.1.210.0000.01018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0000.00818.78
8.1.160.0040.00418.89
8.1.150.0000.00718.77
8.1.140.0040.00417.54
8.1.130.0040.00417.54
8.1.120.0040.00417.46
8.1.110.0040.00417.42
8.1.100.0000.00817.59
8.1.90.0040.00417.61
8.1.80.0000.00717.61
8.1.70.0000.00717.54
8.1.60.0030.00517.69
8.1.50.0000.00717.65
8.1.40.0040.00417.60
8.1.30.0080.00017.63
8.1.20.0000.00917.74
8.1.10.0060.00317.63
8.1.00.0040.00417.63
8.0.300.0000.00718.77
8.0.290.0050.00316.88
8.0.280.0060.00318.47
8.0.270.0000.00717.30
8.0.260.0030.00316.88
8.0.250.0090.00016.98
8.0.240.0030.00416.98
8.0.230.0050.00317.03
8.0.220.0040.00416.96
8.0.210.0000.00716.95
8.0.200.0070.00017.00
8.0.190.0000.00717.05
8.0.180.0040.00416.92
8.0.170.0060.00316.97
8.0.160.0070.00017.09
8.0.150.0040.00416.93
8.0.140.0050.00316.96
8.0.130.0000.00513.45
8.0.120.0030.00716.84
8.0.110.0000.00716.94
8.0.100.0040.00417.05
8.0.90.0060.00217.03
8.0.80.0040.01116.96
8.0.70.0000.00716.94
8.0.60.0000.00817.08
8.0.50.0050.00316.98
8.0.30.0060.01317.13
8.0.20.0120.01016.99
8.0.10.0000.00816.93
8.0.00.0100.01116.87
7.4.330.0000.00513.13
7.4.320.0000.00616.66
7.4.300.0060.00016.65
7.4.290.0000.01016.76
7.4.280.0080.00016.57
7.4.270.0070.00016.73
7.4.260.0000.00716.74
7.4.250.0000.00816.75
7.4.240.0030.00316.67
7.4.230.0000.00816.78
7.4.220.0060.01316.63
7.4.210.0120.00316.75
7.4.200.0070.00016.55
7.4.190.0030.00516.56
7.4.160.0060.01016.50
7.4.150.0090.00916.75
7.4.140.0150.00317.86
7.4.130.0100.01516.65
7.4.120.0070.01316.71
7.4.110.0100.00716.54
7.4.100.0060.01116.68
7.4.90.0120.01216.57
7.4.80.0070.01119.39
7.4.70.0110.00716.68
7.4.60.0070.01416.79
7.4.50.0040.00016.71
7.4.40.0060.00916.64
7.4.30.0110.01116.74
7.4.00.0070.01115.06
7.3.330.0030.00313.12
7.3.320.0030.00313.17
7.3.310.0000.00816.21
7.3.300.0070.00016.27
7.3.290.0060.00916.33
7.3.280.0090.00616.29
7.3.270.0100.01016.72
7.3.260.0070.01016.60
7.3.240.0060.01016.34
7.3.230.0080.01216.67
7.3.210.0100.00716.42
7.3.200.0040.01416.20
7.3.190.0070.01316.35
7.3.180.0140.00516.39
7.3.170.0100.01016.54
7.3.160.0120.00616.29
7.3.120.0050.01214.90
7.3.110.0060.01014.88
7.3.100.0080.00514.97
7.3.90.0040.00914.84
7.3.80.0110.00514.90
7.3.70.0080.00514.92
7.3.60.0090.00714.88
7.3.50.0090.00614.79
7.3.40.0070.00714.70
7.3.30.0030.00814.85
7.3.20.0090.00916.82
7.3.10.0070.00916.81
7.3.00.0030.01016.78
7.2.330.0110.00716.59
7.2.320.0070.01016.72
7.2.310.0100.00716.63
7.2.300.0060.01816.62
7.2.290.0060.01216.53
7.2.250.0070.01014.93
7.2.240.0080.01114.98
7.2.230.0120.00615.10
7.2.220.0050.01115.13
7.2.210.0050.01215.04
7.2.200.0060.00615.01
7.2.190.0050.01115.17
7.2.180.0050.00714.93
7.2.170.0050.01015.01
7.2.160.0090.00915.31
7.2.150.0000.01916.84
7.2.140.0060.00916.86
7.2.130.0090.00616.90
7.2.120.0130.00317.11
7.2.110.0080.01016.78
7.2.100.0180.00616.83
7.2.90.0180.00616.77
7.2.80.0070.01216.74
7.2.70.0110.00216.87
7.2.60.0170.00916.90
7.2.50.0130.00816.94
7.2.40.0090.01016.90
7.2.30.0100.00917.03
7.2.20.0200.00516.86
7.2.10.0140.00116.80
7.2.00.0090.00517.68
7.1.330.0050.00916.04
7.1.320.0050.00615.85
7.1.310.0060.00615.71
7.1.300.0080.00615.81
7.1.290.0080.00615.90
7.1.280.0020.00915.83
7.1.270.0030.01216.03
7.1.260.0030.01015.99
7.1.250.0040.00715.69
7.1.230.0250.00316.00
7.1.220.0120.01115.58
7.1.210.0110.01015.68
7.1.200.0110.00315.76
7.1.190.0150.00715.80
7.1.180.0140.00815.85
7.1.170.0110.00315.90
7.1.160.0130.00316.01
7.1.150.0160.00316.00
7.1.140.0130.00315.88
7.1.130.0100.00515.73
7.1.120.0110.00415.54
7.1.110.0260.00916.10
7.1.100.0150.00917.11
7.1.90.0340.00315.79
7.1.80.0220.00715.78
7.1.70.0110.00416.42
7.1.60.0160.00717.59
7.1.50.0250.00916.51
7.1.40.0440.00715.78
7.1.30.0040.01615.75
7.1.20.0150.00716.18
7.1.10.0120.00215.66
7.1.00.0080.03719.19
7.0.310.0160.00515.26
7.0.300.0130.00315.55
7.0.290.0150.00015.46
7.0.280.0400.00015.46
7.0.270.0100.00615.08
7.0.260.0110.00715.45
7.0.250.0210.00815.48
7.0.240.0250.01315.63
7.0.230.0110.00615.41
7.0.220.0120.00415.62
7.0.210.0160.00515.30
7.0.200.0060.00816.17
7.0.190.0380.00715.48
7.0.180.0150.00315.56
7.0.170.0130.00315.45
7.0.160.0110.00315.56
7.0.150.0120.00815.24
7.0.140.0060.03818.86
7.0.130.0070.01115.29
7.0.120.0060.02218.92
7.0.110.0040.01215.71
7.0.100.0140.00315.70
7.0.90.0070.01015.65
7.0.80.0120.00615.43
7.0.70.0130.00315.48
7.0.60.0100.04317.70
7.0.50.0090.04616.62
7.0.40.0110.04017.05
7.0.30.0130.03216.73
7.0.20.0210.03816.92
7.0.10.0060.03316.94
7.0.00.0060.04916.68
5.6.380.0180.00314.38
5.6.370.0180.00014.28
5.6.360.0040.01314.37
5.6.350.0060.01214.27
5.6.340.0130.00614.13
5.6.330.0070.00714.42
5.6.320.0020.01213.98
5.6.310.0140.00614.16
5.6.300.0080.00514.29
5.6.290.0120.00414.51
5.6.280.0060.04017.90
5.6.270.0090.00614.21
5.6.260.0070.01114.40
5.6.250.0070.00714.26
5.6.240.0090.00914.70
5.6.230.0170.00014.39
5.6.220.0110.00914.41
5.6.210.0090.03917.57
5.6.200.0100.04216.21
5.6.190.0140.03717.32
5.6.180.0220.04217.38
5.6.170.0220.03217.31
5.6.160.0070.04017.49
5.6.150.0180.03516.09
5.6.140.0170.02716.16
5.6.130.0090.02816.24
5.6.120.0120.03817.75
5.6.110.0080.04117.68
5.6.100.0060.04217.63
5.6.90.0110.02017.65
5.6.80.0030.02617.27
5.6.70.0050.00814.30
5.6.60.0110.00414.21
5.6.50.0080.00814.45
5.6.40.0140.00314.18
5.6.30.0140.00314.28
5.6.20.0100.00714.22
5.6.10.0100.00614.16
5.6.00.0080.00814.26
5.5.380.0090.00612.79
5.5.370.0120.00012.79
5.5.360.0020.00712.79
5.5.350.0150.04216.63
5.5.340.0090.02715.37
5.5.330.0100.04016.52
5.5.320.0180.04416.54
5.5.310.0160.04116.53
5.5.300.0090.01815.39
5.5.290.0150.03115.37
5.5.280.0070.02016.76
5.5.270.0070.02216.79
5.5.260.0130.03716.77
5.5.250.0080.04116.79
5.5.240.0020.04316.41
5.5.230.0130.00012.79
5.5.220.0060.00612.79
5.5.210.0120.00012.79
5.5.200.0030.01012.79
5.5.190.0080.00412.79
5.5.180.0040.00812.79
5.5.170.0080.00814.13
5.5.160.0070.00412.79
5.5.150.0150.00012.79
5.5.140.0100.00612.79
5.5.130.0090.00312.79
5.5.120.0090.00212.79
5.5.110.0100.00312.79
5.5.100.0120.00012.79
5.5.90.0100.00012.79
5.5.80.0120.00012.79
5.5.70.0090.00312.79
5.5.60.0150.00012.79
5.5.50.0080.00512.79
5.5.40.0060.00812.79
5.5.30.0070.00712.79
5.5.20.0130.00312.79
5.5.10.0080.00512.79
5.5.00.0080.00512.79
5.4.450.0070.03316.02
5.4.440.0130.03016.11
5.4.430.0070.02716.13
5.4.420.0110.04116.11
5.4.410.0090.03316.07
5.4.400.0070.04215.98
5.4.390.0060.04315.93
5.4.380.0070.02315.98
5.4.370.0030.02415.98
5.4.360.0070.02315.98
5.4.350.0060.03915.98
5.4.340.0020.02415.88
5.4.330.0040.00712.79
5.4.320.0070.02015.85
5.4.310.0110.01815.96
5.4.300.0100.03315.85
5.4.290.0100.03815.85
5.4.280.0060.02315.97
5.4.270.0100.03815.85
5.4.260.0080.04215.98
5.4.250.0070.04315.98
5.4.240.0070.02615.97
5.4.230.0140.03715.98
5.4.220.0070.02415.85
5.4.210.0050.04015.98
5.4.200.0050.02515.78
5.4.190.0080.02015.97
5.4.180.0080.02715.78
5.4.170.0080.02315.96
5.4.160.0110.03915.92
5.4.150.0120.03615.78
5.4.140.0060.01914.54
5.4.130.0110.03414.49
5.4.120.0050.04014.56
5.4.110.0070.02514.54
5.4.100.0040.02514.60
5.4.90.0050.02214.58
5.4.80.0090.03514.52
5.4.70.0090.03614.46
5.4.60.0060.02614.53
5.4.50.0090.02114.59
5.4.40.0050.02314.51
5.4.30.0060.02914.55
5.4.20.0050.03114.48
5.4.10.0080.04214.57
5.4.00.0070.02514.20
5.3.290.0060.02213.70
5.3.280.0060.02313.67
5.3.270.0060.04413.66
5.3.260.0110.01713.63
5.3.250.0030.02313.60
5.3.240.0060.02713.67
5.3.230.0060.02513.66
5.3.220.0070.02513.66
5.3.210.0070.03713.65
5.3.200.0110.03613.62
5.3.190.0120.01713.65
5.3.180.0110.04213.65
5.3.170.0060.03113.68
5.3.160.0100.01913.65
5.3.150.0060.02013.65
5.3.140.0000.03213.58
5.3.130.0080.02113.64
5.3.120.0070.02013.63
5.3.110.0050.02713.58
5.3.100.0080.03013.38
5.3.90.0080.02213.38
5.3.80.0100.02713.42
5.3.70.0090.02213.38
5.3.60.0110.02613.38
5.3.50.0070.02713.34
5.3.40.0070.02313.33
5.3.30.0060.04013.31
5.3.20.0090.03813.20
5.3.10.0050.02513.19
5.3.00.0130.01813.22
5.2.170.0040.03511.90
5.2.160.0080.02711.93
5.2.150.0070.01512.04
5.2.140.0050.01811.88
5.2.130.0080.01811.91
5.2.120.0070.01511.87
5.2.110.0050.03611.94
5.2.100.0060.01711.91
5.2.90.0100.01511.92
5.2.80.0020.01911.89
5.2.70.0060.01612.02
5.2.60.0100.01111.86
5.2.50.0070.01811.98
5.2.40.0060.02511.89
5.2.30.0100.02811.81
5.2.20.0060.02511.91
5.2.10.0090.02211.75
5.2.00.0050.01711.75
5.1.60.0090.02511.41
5.1.50.0050.03211.41
5.1.40.0050.01611.37
5.1.30.0070.02811.54
5.1.20.0000.01911.57
5.1.10.0040.02011.43
5.1.00.0080.01711.43
5.0.50.0050.01210.67
5.0.40.0010.02610.55
5.0.30.0050.02210.50
5.0.20.0080.00710.52
5.0.10.0060.02110.50
5.0.00.0030.02310.45
4.4.90.0060.0189.76
4.4.80.0020.0219.76
4.4.70.0020.0139.76
4.4.60.0030.0119.76
4.4.50.0000.0219.76
4.4.40.0000.0189.76
4.4.30.0040.0089.76
4.4.20.0020.0089.76
4.4.10.0000.0229.76
4.4.00.0020.0189.76
4.3.110.0030.0119.76
4.3.100.0020.0109.76
4.3.90.0020.0109.76
4.3.80.0000.0339.76
4.3.70.0020.0209.76
4.3.60.0030.0149.76
4.3.50.0040.0209.76
4.3.40.0070.0179.76
4.3.30.0010.0179.76
4.3.20.0010.0169.76
4.3.10.0000.0139.76
4.3.00.0010.0219.76

preferences:
49.86 ms | 401 KiB | 5 Q