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.40.0040.01119.09
8.3.30.0070.01319.09
8.3.20.0040.00420.29
8.3.10.0000.00723.48
8.3.00.0090.00021.00
8.2.170.0150.00022.96
8.2.160.0150.00020.43
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00826.16
8.2.120.0080.00022.09
8.2.110.0060.00322.41
8.2.100.0090.00318.03
8.2.90.0090.00019.23
8.2.80.0080.00017.97
8.2.70.0000.00817.75
8.2.60.0000.00818.04
8.2.50.0100.00218.07
8.2.40.0030.00518.09
8.2.30.0040.00418.00
8.2.20.0070.00017.91
8.2.10.0050.00317.94
8.2.00.0000.00817.68
8.1.270.0000.00922.32
8.1.260.0030.00526.35
8.1.250.0070.00428.09
8.1.240.0030.00623.96
8.1.230.0110.00019.00
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0090.00017.36
8.1.190.0000.00817.41
8.1.180.0000.00918.10
8.1.170.0080.00018.60
8.1.160.0000.00821.91
8.1.150.0040.00418.75
8.1.140.0080.00017.57
8.1.130.0030.00317.92
8.1.120.0000.00717.64
8.1.110.0050.00317.45
8.1.100.0000.00717.56
8.1.90.0000.00817.61
8.1.80.0000.00817.46
8.1.70.0000.00717.49
8.1.60.0040.00417.68
8.1.50.0000.00817.69
8.1.40.0030.00717.56
8.1.30.0060.00317.73
8.1.20.0070.00017.81
8.1.10.0000.00817.71
8.1.00.0090.00317.48
8.0.300.0030.00318.77
8.0.290.0030.00517.04
8.0.280.0030.00318.55
8.0.270.0070.00017.21
8.0.260.0070.00016.90
8.0.250.0030.00317.04
8.0.240.0040.00417.16
8.0.230.0000.00716.93
8.0.220.0000.00716.99
8.0.210.0000.00817.04
8.0.200.0030.00317.06
8.0.190.0000.00817.02
8.0.180.0030.00617.06
8.0.170.0050.00317.04
8.0.160.0000.00717.07
8.0.150.0040.00416.88
8.0.140.0070.00016.96
8.0.130.0030.00313.43
8.0.120.0000.00816.87
8.0.110.0050.00316.96
8.0.100.0050.00316.97
8.0.90.0040.00416.90
8.0.80.0120.00317.06
8.0.70.0070.00017.00
8.0.60.0030.00616.89
8.0.50.0000.00716.95
8.0.30.0100.00817.27
8.0.20.0100.01217.40
8.0.10.0090.00017.01
8.0.00.0090.00917.08
7.4.330.0020.00215.10
7.4.320.0020.00516.76
7.4.300.0000.00616.63
7.4.290.0000.00716.64
7.4.280.0030.00616.61
7.4.270.0030.00316.79
7.4.260.0030.00316.54
7.4.250.0040.00416.79
7.4.240.0020.00516.69
7.4.230.0040.00416.69
7.4.220.0150.00416.63
7.4.210.0060.00916.77
7.4.200.0030.00416.80
7.4.190.0040.00416.60
7.4.160.0100.01016.60
7.4.150.0040.01317.40
7.4.140.0140.00517.86
7.4.130.0070.01016.81
7.4.120.0110.00616.64
7.4.110.0000.01616.45
7.4.100.0090.00916.66
7.4.90.0090.00916.62
7.4.80.0120.00619.39
7.4.70.0190.00316.81
7.4.60.0120.00616.71
7.4.50.0040.00016.59
7.4.40.0060.01322.77
7.4.30.0070.01116.78
7.4.10.0030.01415.22
7.4.00.0030.01315.07
7.3.330.0030.00313.28
7.3.320.0000.00613.13
7.3.310.0070.00016.15
7.3.300.0030.00316.34
7.3.290.0070.01016.28
7.3.280.0100.00716.29
7.3.270.0170.00317.40
7.3.260.0110.00816.30
7.3.250.0120.00816.49
7.3.240.0110.00716.34
7.3.230.0100.01116.39
7.3.210.0090.00916.32
7.3.200.0100.00719.39
7.3.190.0130.00516.24
7.3.180.0080.00816.32
7.3.170.0130.00316.34
7.3.160.0090.00616.46
7.3.130.0130.00615.08
7.3.120.0030.01414.98
7.3.110.0090.00814.97
7.3.100.0040.01314.93
7.3.90.0050.00714.86
7.3.80.0080.00714.88
7.3.70.0050.00914.84
7.3.60.0070.00914.79
7.3.50.0110.00614.98
7.3.40.0030.01014.84
7.3.30.0050.00914.77
7.3.20.0070.01016.73
7.3.10.0050.00916.72
7.3.00.0060.00916.75
7.2.330.0030.01316.57
7.2.320.0090.00916.53
7.2.310.0090.00916.66
7.2.300.0090.00916.66
7.2.290.0090.01016.80
7.2.260.0030.01315.19
7.2.250.0110.00615.11
7.2.240.0060.01314.98
7.2.230.0060.01115.10
7.2.220.0060.00915.00
7.2.210.0060.00815.10
7.2.200.0050.01014.95
7.2.190.0080.00915.06
7.2.180.0080.00814.95
7.2.170.0080.00614.97
7.2.160.0070.00815.26
7.2.150.0050.01216.89
7.2.140.0070.00716.88
7.2.130.0030.01116.84
7.2.120.0050.00816.91
7.2.110.0080.00716.83
7.2.100.0040.01216.97
7.2.90.0070.00916.87
7.2.80.0060.00517.10
7.2.70.0080.00616.78
7.2.60.0050.00716.98
7.2.50.0080.00716.98
7.2.40.0040.00816.95
7.2.30.0070.00917.06
7.2.20.0080.00716.88
7.2.10.0080.00616.98
7.2.00.0040.00917.67
7.1.330.0070.00916.00
7.1.320.0090.00615.89
7.1.310.0060.00815.87
7.1.300.0080.00515.76
7.1.290.0060.00815.88
7.1.280.0070.00515.73
7.1.270.0070.00715.87
7.1.260.0060.00715.90
7.1.250.0060.00815.75
7.1.240.0040.01015.95
7.1.230.0030.01215.78
7.1.220.0030.00916.04
7.1.210.0000.01015.79
7.1.200.0060.00615.89
7.1.190.0090.00315.86
7.1.180.0040.01115.90
7.1.170.0040.01215.87
7.1.160.0080.00415.91
7.1.150.0030.00615.87
7.1.140.0030.00515.70
7.1.130.0070.00716.02
7.1.120.0060.00615.68
7.1.110.0060.00616.08
7.1.100.0100.00316.97
7.1.90.0040.01215.92
7.1.80.0090.00616.00
7.1.70.0020.00816.65
7.1.60.0080.00817.60
7.1.50.0090.00916.45
7.1.40.0060.00915.93
7.1.30.0070.00415.80
7.1.20.0040.00815.90
7.1.10.0040.00815.82
7.1.00.0080.03719.14
7.0.330.0080.00415.61
7.0.320.0070.00715.57
7.0.310.0000.00815.49
7.0.300.0030.00715.28
7.0.290.0030.01015.48
7.0.280.0030.00915.68
7.0.270.0040.00415.34
7.0.260.0040.01115.31
7.0.250.0070.00715.50
7.0.240.0070.00715.49
7.0.230.0080.00415.55
7.0.220.0040.00815.65
7.0.210.0030.01015.50
7.0.200.0030.00516.19
7.0.190.0040.01115.46
7.0.180.0070.00715.45
7.0.170.0100.00715.27
7.0.160.0030.00915.29
7.0.150.0040.01115.26
7.0.140.0050.04018.90
7.0.130.0070.00415.61
7.0.120.0070.00315.43
7.0.110.0040.00715.61
7.0.100.0070.02617.72
7.0.90.0130.03717.74
7.0.80.0090.03817.61
7.0.70.0080.02717.63
7.0.60.0070.04717.76
7.0.50.0050.03017.96
7.0.40.0050.04416.92
7.0.30.0070.04316.86
7.0.20.0030.04716.75
7.0.10.0110.04016.80
7.0.00.0100.02416.62
5.6.400.0070.00714.56
5.6.390.0090.00614.25
5.6.380.0090.00614.05
5.6.370.0090.00614.11
5.6.360.0070.00714.25
5.6.350.0040.01114.22
5.6.340.0030.01014.44
5.6.330.0000.00814.52
5.6.320.0060.00314.54
5.6.310.0100.00313.87
5.6.300.0060.00914.63
5.6.290.0030.00914.55
5.6.280.0040.04117.57
5.6.270.0000.01114.45
5.6.260.0120.00014.18
5.6.250.0090.04117.38
5.6.240.0080.04117.41
5.6.230.0050.04317.40
5.6.220.0130.03617.41
5.6.210.0100.04217.44
5.6.200.0030.03917.54
5.6.190.0090.02517.61
5.6.180.0180.03717.72
5.6.170.0050.04517.71
5.6.160.0100.04017.58
5.6.150.0070.02917.65
5.6.140.0100.04217.58
5.6.130.0080.02717.56
5.6.120.0050.03117.53
5.6.110.0120.03817.58
5.6.100.0090.03517.54
5.6.90.0110.04317.63
5.6.80.0080.03517.19
5.6.70.0080.03717.26
5.6.60.0100.03617.33
5.6.50.0110.03917.23
5.6.40.0090.04017.09
5.6.30.0030.04117.36
5.6.20.0040.04217.21
5.6.10.0130.03317.16
5.6.00.0050.03117.35
5.5.380.0110.03817.34
5.5.370.0110.03617.16
5.5.360.0090.03517.34
5.5.350.0010.03817.37
5.5.340.0080.03717.65
5.5.330.0100.04317.48
5.5.320.0130.03217.29
5.5.310.0120.03717.49
5.5.300.0060.04517.61
5.5.290.0050.04217.32
5.5.280.0140.01717.50
5.5.270.0090.02817.40
5.5.260.0020.04517.55
5.5.250.0080.03917.40
5.5.240.0050.02717.10
5.5.230.0050.03817.17
5.5.220.0030.04317.22
5.5.210.0030.04517.18
5.5.200.0100.04317.21
5.5.190.0110.03717.09
5.5.180.0110.04117.13
5.5.170.0100.00314.23
5.5.160.0080.04017.15
5.5.150.0060.04517.05
5.5.140.0100.02517.07
5.5.130.0050.04317.02
5.5.120.0070.02917.21
5.5.110.0050.04317.18
5.5.100.0130.02216.96
5.5.90.0110.03817.14
5.5.80.0080.04316.99
5.5.70.0030.04417.02
5.5.60.0080.04017.14
5.5.50.0090.04016.99
5.5.40.0060.04216.97
5.5.30.0050.02716.98
5.5.20.0020.04617.13
5.5.10.0070.04216.90
5.5.00.0100.02216.89
5.4.450.0090.01815.21
5.4.440.0050.03415.03
5.4.430.0020.04115.13
5.4.420.0080.04015.16
5.4.410.0090.03515.16
5.4.400.0070.02114.94
5.4.390.0040.04314.95
5.4.380.0030.03914.82
5.4.370.0050.02914.87
5.4.360.0060.02614.91
5.4.350.0020.02814.85
5.4.340.0100.03814.95
5.4.330.0060.00610.78
5.4.320.0070.03914.84
5.4.310.0020.04414.92
5.4.300.0030.04315.02
5.4.290.0080.02814.91
5.4.280.0080.03715.03
5.4.270.0080.03615.01
5.4.260.0080.04014.92
5.4.250.0050.03715.03
5.4.240.0020.04514.94
5.4.230.0060.04014.79
5.4.220.0070.03015.00
5.4.210.0110.03314.89
5.4.200.0070.03814.93
5.4.190.0000.04714.92
5.4.180.0080.02514.95
5.4.170.0040.04514.78
5.4.160.0060.03014.88
5.4.150.0070.04114.94
5.4.140.0040.03413.55
5.4.130.0110.01813.50
5.4.120.0080.02113.53
5.4.110.0020.02413.62
5.4.100.0030.02313.66
5.4.90.0080.02313.59
5.4.80.0070.02013.63
5.4.70.0020.02413.59
5.4.60.0020.02213.48
5.4.50.0030.02113.63
5.4.40.0050.02213.69
5.4.30.0080.01513.53
5.4.20.0020.02613.57
5.4.10.0110.01213.48
5.4.00.0060.02013.17
5.3.290.0080.03812.67
5.3.280.0090.02812.67
5.3.270.0010.04512.68
5.3.260.0070.04012.69
5.3.250.0070.04012.62
5.3.240.0050.04012.68
5.3.230.0070.02512.68
5.3.220.0100.01812.65
5.3.210.0050.02312.66
5.3.200.0050.02012.66
5.3.190.0030.02612.65
5.3.180.0020.02512.62
5.3.170.0070.02812.57
5.3.160.0030.02212.65
5.3.150.0050.02012.66
5.3.140.0060.01812.64
5.3.130.0000.02512.63
5.3.120.0020.02712.59
5.3.110.0020.02112.59
5.3.100.0020.02412.32
5.3.90.0070.01812.35
5.3.80.0020.02212.39
5.3.70.0000.02512.39
5.3.60.0040.02012.37
5.3.50.0020.02212.35
5.3.40.0050.02512.33
5.3.30.0000.03612.27
5.3.20.0050.02012.15
5.3.10.0040.02412.14
5.3.00.0070.01712.19
5.2.170.0030.03011.10
5.2.160.0000.04711.12
5.2.150.0030.03011.21
5.2.140.0000.03710.93
5.2.130.0030.02310.91
5.2.120.0030.03011.13
5.2.110.0000.03011.12
5.2.100.0000.03311.11
5.2.90.0000.03010.92
5.2.80.0030.02711.09
5.2.70.0030.03011.05
5.2.60.0030.03710.90
5.2.50.0000.03710.83
5.2.40.0000.03011.05
5.2.30.0030.02710.81
5.2.20.0000.03310.84
5.2.10.0030.02710.90
5.2.00.0030.02710.79
5.1.60.0000.0439.99
5.1.50.0000.02710.02
5.1.40.0030.0339.98
5.1.30.0030.02310.25
5.1.20.0000.02710.37
5.1.10.0000.02310.14
5.1.00.0000.02710.06
5.0.50.0070.0138.53
5.0.40.0000.0208.44
5.0.30.0000.0338.20
5.0.20.0000.0208.27
5.0.10.0000.0208.27
5.0.00.0000.0308.21
4.4.90.0030.0137.16
4.4.80.0030.0277.16
4.4.70.0070.0107.16
4.4.60.0030.0177.16
4.4.50.0030.0137.16
4.4.40.0000.0237.16
4.4.30.0000.0177.16
4.4.20.0000.0177.16
4.4.10.0000.0177.16
4.4.00.0000.0307.16
4.3.110.0030.0137.16
4.3.100.0000.0137.16
4.3.90.0000.0177.16
4.3.80.0000.0277.16
4.3.70.0000.0137.16
4.3.60.0000.0177.16
4.3.50.0030.0137.16
4.3.40.0000.0237.16
4.3.30.0000.0137.16
4.3.20.0030.0137.16
4.3.10.0030.0137.16
4.3.00.0000.0177.16

preferences:
49.36 ms | 400 KiB | 5 Q