3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fullURLSample = /*str_replace( "\r", '',*/ 'https://www.facebook.com/dialog/feed?app_id={app_id}&link={url}&picture={img}&name={title}&description={desc}&redirect_uri={redirect_url} https://twitter.com/share?url={url}&text={title}&via={via}&hashtags={hashtags} https://plus.google.com/share?url={url} https://pinterest.com/pin/create/bookmarklet/?media={img}&url={url}&is_video={is_video}&description={title} http://www.youtube.com/watch?v=uMdl80k-3yo https://vimeo.com/391720 https://www.flickr.com/photos/eshu/galleries/72157621948084368/ http://picasa.google.com.au/ http://instagram.com/username111 https://foursquare.com/explore?cat=food&mode=url&near=Wollongong%2C%20NSW http://every1-knows-its-butters.tumblr.com/ http://www.tumblr.com/share/link?url={url}&name={title}&description={desc} skype://notsurewhatgoeshere https://soundcloud.com/iambrodydalle http://www.linkedin.com/shareArticle?url={url}&title={title} https://github.com/chrisburgess7 http://dribbble.com/MailChimp https://itunes.apple.com/au/podcast/the-history-of-britain/id802163163?mt=2'; $urlRegex1 = '_' . '(?:(?:https?)://)' . '(?>[a-z\x{00a1}-\x{ffff}0-9]+-?)*\.?'; $urlRegex2 = '(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)*' . // domain name '(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,}))' . // TLD identifier '(?::\d{2,5})?(?:/[^\s]*)?' . // rest of path '_iuS'; var_dump( preg_match( $urlRegex1 . 'facebook' . $urlRegex2, $fullURLSample ) ); $urls = preg_replace( $urlRegex1 . 'facebook' . $urlRegex2, 'http://www.facebook.com', $fullURLSample ); $err = preg_last_error(); var_dump( $err ); if ( $err === PREG_BACKTRACK_LIMIT_ERROR ) { echo 'Error!'; } var_dump( $urls );

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.70.0070.01016.75
8.3.60.0120.01218.43
8.3.50.0080.01321.20
8.3.40.0120.00618.96
8.3.30.0100.00719.21
8.3.20.0060.00320.43
8.3.10.0090.00021.95
8.3.00.0030.00620.67
8.2.180.0180.00618.31
8.2.170.0070.01322.96
8.2.160.0070.01019.33
8.2.150.0000.00924.18
8.2.140.0000.00924.66
8.2.130.0120.00926.16
8.2.120.0030.00619.73
8.2.110.0030.00619.50
8.2.100.0070.00718.09
8.2.90.0040.00419.30
8.2.80.0030.00617.97
8.2.70.0000.01118.13
8.2.60.0080.00318.17
8.2.50.0060.00618.07
8.2.40.0030.00620.13
8.2.30.0090.00018.16
8.2.20.0040.00417.87
8.2.10.0040.00418.13
8.2.00.0030.00617.99
8.1.280.0140.00325.92
8.1.270.0030.00622.26
8.1.260.0060.00326.35
8.1.250.0050.00528.09
8.1.240.0000.01021.24
8.1.230.0070.00717.64
8.1.220.0030.00718.02
8.1.210.0030.00618.77
8.1.200.0070.00317.59
8.1.190.0000.00917.60
8.1.180.0030.00718.89
8.1.170.0060.00318.94
8.1.160.0000.00922.27
8.1.150.0100.00018.82
8.1.140.0000.01317.64
8.1.130.0000.00817.97
8.1.120.0000.00917.69
8.1.110.0030.00617.57
8.1.100.0000.00917.67
8.1.90.0060.00317.68
8.1.80.0040.00417.57
8.1.70.0040.00417.57
8.1.60.0100.00017.75
8.1.50.0000.00917.73
8.1.40.0060.00317.63
8.1.30.0000.00917.78
8.1.20.0000.00917.80
8.1.10.0030.00617.62
8.1.00.0050.00517.61
8.0.300.0000.00918.77
8.0.290.0060.00317.13
8.0.280.0040.00418.60
8.0.270.0040.00417.42
8.0.260.0030.00517.17
8.0.250.0050.00317.34
8.0.240.0030.00617.32
8.0.230.0030.00517.18
8.0.220.0030.00517.14
8.0.210.0040.00417.19
8.0.200.0090.00017.26
8.0.190.0030.00617.26
8.0.180.0040.00417.18
8.0.170.0040.00417.20
8.0.160.0030.00717.16
8.0.150.0030.00617.08
8.0.140.0000.00917.18
8.0.130.0070.00013.69
8.0.120.0000.00917.29
8.0.110.0040.00417.19
8.0.100.0030.00617.23
8.0.90.0030.00617.25
8.0.80.0040.01417.18
8.0.70.0030.00617.03
8.0.60.0000.00917.06
8.0.50.0030.00617.03
8.0.30.0140.00817.48
8.0.20.0090.01217.40
8.0.10.0060.00317.10
8.0.00.0050.01517.12
7.4.330.0000.00715.20
7.4.320.0040.00416.86
7.4.300.0040.00416.91
7.4.290.0000.00916.95
7.4.280.0000.00916.88
7.4.270.0080.00016.89
7.4.260.0030.00516.76
7.4.250.0050.00516.79
7.4.240.0030.00616.87
7.4.230.0000.00916.64
7.4.220.0100.01716.95
7.4.210.0110.01016.99
7.4.200.0030.00617.04
7.4.190.0050.00516.73
7.4.160.0070.01016.78
7.4.150.0040.01417.40
7.4.140.0120.01217.86
7.4.130.0100.01416.90
7.4.120.0090.01116.86
7.4.110.0090.00916.76
7.4.100.0100.01016.66
7.4.90.0120.01516.90
7.4.80.0140.00719.39
7.4.70.0170.00316.79
7.4.60.0130.00716.92
7.4.50.0000.00716.68
7.4.40.0060.01322.77
7.4.30.0060.01416.61
7.4.00.0060.01315.16
7.3.330.0030.00313.43
7.3.320.0000.00713.33
7.3.310.0040.00416.65
7.3.300.0000.00916.42
7.3.290.0030.01316.48
7.3.280.0060.01216.52
7.3.270.0100.01017.40
7.3.260.0080.01116.58
7.3.250.0120.00716.65
7.3.240.0120.00616.71
7.3.230.0040.01516.64
7.3.210.0060.01516.51
7.3.200.0060.01319.39
7.3.190.0030.01616.55
7.3.180.0090.01016.36
7.3.170.0060.01316.74
7.3.160.0090.00916.54
7.3.120.0030.01415.00
7.2.330.0140.00716.75
7.2.320.0130.00716.94
7.2.310.0090.00916.82
7.2.300.0030.01516.73
7.2.290.0040.01516.75
7.2.00.0070.01019.79
7.1.100.0070.01018.66
7.1.70.0060.01217.11
7.1.60.0210.00719.82
7.1.50.0170.01017.34
7.1.00.0100.07022.47
7.0.200.0030.00916.98
7.0.140.0000.08022.13
7.0.100.0200.06720.00
7.0.90.0070.08319.93
7.0.80.0030.06019.96
7.0.70.0130.06319.92
7.0.60.0300.06719.96
7.0.50.0030.07720.21
7.0.40.0100.07720.14
7.0.30.0100.08020.17
7.0.20.0070.09720.21
7.0.10.0070.08320.14
7.0.00.0070.09020.02
5.6.280.0030.07720.78
5.6.250.0070.08020.60
5.6.240.0000.04720.53
5.6.230.0100.06020.59
5.6.220.0070.07020.67
5.6.210.0130.07320.75
5.6.200.0030.05021.09
5.6.190.0100.08021.00
5.6.180.0030.09321.11
5.6.170.0170.08320.98
5.6.160.0000.05721.11
5.6.150.0100.05321.00
5.6.140.0030.05721.07
5.6.130.0030.07021.10
5.6.120.0100.08721.02
5.6.110.0070.08721.02
5.6.100.0030.05721.06
5.6.90.0030.05720.93
5.6.80.0100.07320.42
5.6.70.0030.05020.40
5.6.60.0070.07720.38
5.6.50.0070.05320.41
5.6.40.0030.09020.31
5.6.30.0070.04720.50
5.6.20.0130.04320.39
5.6.10.0130.07320.29
5.6.00.0030.09020.40
5.5.380.0130.03320.33
5.5.370.0100.07020.49
5.5.360.0000.06320.50
5.5.350.0130.05720.45
5.5.340.0030.04720.87
5.5.330.0070.07720.78
5.5.320.0130.07720.80
5.5.310.0100.05320.74
5.5.300.0070.08320.86
5.5.290.0030.06020.82
5.5.280.0030.07720.81
5.5.270.0070.06720.91
5.5.260.0070.04720.85
5.5.250.0070.05320.54
5.5.240.0170.07020.18
5.5.230.0100.08320.25
5.5.220.0100.07720.27
5.5.210.0030.08020.30
5.5.200.0100.05720.13
5.5.190.0100.08320.21
5.5.180.0100.07719.98
5.5.160.0030.06020.15
5.5.150.0070.05720.22
5.5.140.0030.08320.08
5.5.130.0070.08720.20
5.5.120.0100.07020.12
5.5.110.0100.09020.03
5.5.100.0070.08320.07
5.5.90.0030.07320.09
5.5.80.0030.06019.97
5.5.70.0000.04719.90
5.5.60.0070.08320.14
5.5.50.0070.05720.14
5.5.40.0100.08320.03
5.5.30.0030.04720.13
5.5.20.0070.07020.05
5.5.10.0030.08020.00
5.5.00.0070.07319.99
5.4.450.0030.08719.42
5.4.440.0070.05319.45
5.4.430.0070.04019.30
5.4.420.0070.08319.35
5.4.410.0070.09019.43
5.4.400.0070.07318.83
5.4.390.0100.08318.80
5.4.380.0130.07019.13
5.4.370.0000.08018.79
5.4.360.0030.08319.03
5.4.350.0130.06719.14
5.4.340.0130.08319.07
5.4.320.0030.04318.96
5.4.310.0070.04019.14
5.4.300.0030.07718.98
5.4.290.0070.04718.90
5.4.280.0000.08719.04
5.4.270.0100.04719.11
5.4.260.0100.07319.04
5.4.250.0000.08319.09
5.4.240.0070.06719.12
5.4.230.0030.04718.89
5.4.220.0070.08019.05
5.4.210.0030.04319.06
5.4.200.0130.07318.98
5.4.190.0070.08019.02
5.4.180.0070.08719.08
5.4.170.0130.08019.10
5.4.160.0130.07718.80
5.4.150.0070.04719.00
5.4.140.0100.08016.37
5.4.130.0070.04016.46
5.4.120.0130.05016.38
5.4.110.0030.04316.26
5.4.100.0130.04716.23
5.4.90.0000.04316.26
5.4.80.0030.04016.19
5.4.70.0030.04316.34
5.4.60.0130.06716.28
5.4.50.0070.07316.19
5.4.40.0100.03016.35
5.4.30.0030.06716.38
5.4.20.0130.04316.18
5.4.10.0070.07716.30
5.4.00.0070.08015.73
5.3.290.0030.05014.62
5.3.280.0000.07314.57
5.3.270.0100.07714.60
5.3.260.0030.08314.57
5.3.250.0170.05314.59
5.3.240.0130.07314.58
5.3.230.0070.04014.51
5.3.220.0030.05714.53
5.3.210.0170.07714.55
5.3.200.0030.08014.52
5.3.190.0070.04014.39
5.3.180.0130.06314.43
5.3.170.0070.06714.42
5.3.160.0030.07714.40
5.3.150.0100.06714.40
5.3.140.0030.03714.52
5.3.130.0100.06714.54
5.3.120.0030.08714.41
5.3.110.0030.04714.41
5.3.100.0070.07013.90
5.3.90.0070.08013.98
5.3.80.0100.03713.88
5.3.70.0100.07714.00
5.3.60.0000.05013.96
5.3.50.0070.07313.80
5.3.40.0130.05713.94
5.3.30.0030.08013.86
5.3.20.0100.06313.70
5.3.10.0000.05013.41
5.3.00.0030.07713.52
5.2.170.0070.05312.29
5.2.160.0170.05712.29
5.2.150.0030.06012.29
5.2.140.0030.07012.29
5.2.130.0030.04012.29
5.2.120.0000.06312.29
5.2.110.0100.06012.29
5.2.100.0030.05012.29
5.2.90.0030.07012.29
5.2.80.0030.07312.29
5.2.70.0030.04312.29
5.2.60.0030.04012.29
5.2.50.0030.04312.29
5.2.40.0070.05012.29
5.2.30.0130.06312.29
5.2.20.0070.07712.29
5.2.10.0030.06712.29
5.2.00.0070.07012.29
5.1.60.0070.06312.29
5.1.50.0000.07312.29
5.1.40.0100.04712.29
5.1.30.0030.06712.29
5.1.20.0070.05012.29
5.1.10.0070.08012.29
5.1.00.0070.08712.29
5.0.50.0070.07312.29
5.0.40.0070.03012.29
5.0.30.0030.05312.29
5.0.20.0070.03712.29
5.0.10.0000.04012.29
5.0.00.0070.05012.29
4.4.90.0000.02712.29
4.4.80.0000.02712.29
4.4.70.0000.03012.29
4.4.60.0030.03312.29
4.4.50.0000.03012.29
4.4.40.0000.07312.29
4.4.30.0030.05712.29
4.4.20.0030.05312.29
4.4.10.0000.05712.29
4.4.00.0030.07712.29
4.3.110.0000.03012.29
4.3.100.0030.03012.29
4.3.90.0000.02712.29
4.3.80.0070.03312.29
4.3.70.0000.03012.29
4.3.60.0000.03312.29
4.3.50.0070.01312.29
4.3.40.0000.02712.29
4.3.30.0070.03312.29
4.3.20.0030.03312.29
4.3.10.0030.02712.29
4.3.00.0030.03312.29

preferences:
65.77 ms | 401 KiB | 5 Q