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 . 'linkedin' . $urlRegex2, $fullURLSample ) ); $urls = preg_replace( $urlRegex1 . 'linkedin' . $urlRegex2, 'http://www.linkedin.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.60.0070.01018.80
8.3.50.0120.01021.33
8.3.40.0170.00319.10
8.3.30.0080.00819.18
8.3.20.0030.00620.45
8.3.10.0030.00722.04
8.3.00.0060.00320.77
8.2.180.0130.01016.63
8.2.170.0170.00322.96
8.2.160.0100.01019.22
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0100.01026.16
8.2.120.0030.00619.73
8.2.110.0030.00619.52
8.2.100.0030.01018.28
8.2.90.0060.00319.38
8.2.80.0090.00018.00
8.2.70.0090.00317.75
8.2.60.0080.00317.80
8.2.50.0000.01218.07
8.2.40.0000.00920.20
8.2.30.0070.00318.13
8.2.20.0030.00617.87
8.2.10.0060.00317.96
8.2.00.0090.00018.00
8.1.280.0160.00625.92
8.1.270.0060.00322.19
8.1.260.0090.00026.35
8.1.250.0000.00928.09
8.1.240.0070.00321.29
8.1.230.0120.00017.45
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0000.01117.60
8.1.190.0030.00617.60
8.1.180.0000.01018.86
8.1.170.0060.00318.72
8.1.160.0000.00922.14
8.1.150.0000.00918.82
8.1.140.0070.00417.66
8.1.130.0030.00618.08
8.1.120.0000.00917.61
8.1.110.0000.00917.59
8.1.100.0030.00617.72
8.1.90.0040.00417.64
8.1.80.0080.00017.73
8.1.70.0040.00417.64
8.1.60.0060.00317.77
8.1.50.0030.00617.61
8.1.40.0030.00617.65
8.1.30.0000.00917.84
8.1.20.0000.01017.84
8.1.10.0000.00917.72
8.1.00.0000.00917.67
8.0.300.0060.00318.77
8.0.290.0090.00017.00
8.0.280.0090.00018.66
8.0.270.0040.00417.31
8.0.260.0050.00317.03
8.0.250.0000.00817.33
8.0.240.0050.00517.25
8.0.230.0000.00917.20
8.0.220.0050.00317.23
8.0.210.0040.00417.24
8.0.200.0000.00717.20
8.0.190.0000.00917.26
8.0.180.0060.00317.27
8.0.170.0030.00617.25
8.0.160.0030.00617.17
8.0.150.0030.00617.13
8.0.140.0030.00617.08
8.0.130.0070.00013.63
8.0.120.0060.00317.08
8.0.110.0030.00617.20
8.0.100.0030.00617.03
8.0.90.0060.00317.30
8.0.80.0090.01517.12
8.0.70.0030.00617.12
8.0.60.0030.00617.06
8.0.50.0000.00917.17
8.0.30.0090.01217.25
8.0.20.0110.01017.40
8.0.10.0000.00817.22
8.0.00.0140.00617.00
7.4.330.0000.00615.25
7.4.320.0000.00816.92
7.4.300.0000.00916.76
7.4.290.0080.00016.94
7.4.280.0030.00616.78
7.4.270.0030.00516.79
7.4.260.0000.00816.81
7.4.250.0040.00416.76
7.4.240.0040.00416.77
7.4.230.0060.00316.68
7.4.220.0100.01916.84
7.4.210.0080.01116.80
7.4.200.0040.00416.73
7.4.190.0060.00316.91
7.4.160.0090.00916.65
7.4.150.0050.01917.40
7.4.140.0050.01517.86
7.4.130.0100.01016.85
7.4.120.0120.01116.77
7.4.110.0100.01116.70
7.4.100.0100.00916.77
7.4.90.0130.00716.83
7.4.80.0140.00719.39
7.4.70.0120.01216.82
7.4.60.0170.00816.64
7.4.50.0050.00016.89
7.4.40.0070.01322.77
7.4.30.0110.00816.84
7.4.00.0110.00815.30
7.3.330.0030.00313.36
7.3.320.0000.00613.30
7.3.310.0000.00816.60
7.3.300.0000.00816.39
7.3.290.0030.01316.52
7.3.280.0120.00916.58
7.3.270.0080.01117.40
7.3.260.0130.01316.64
7.3.250.0070.01216.59
7.3.240.0090.00916.59
7.3.230.0120.00816.57
7.3.210.0090.01816.44
7.3.200.0080.01119.39
7.3.190.0100.01016.65
7.3.180.0060.01316.52
7.3.170.0120.00616.85
7.3.160.0120.01116.61
7.3.120.0090.00914.98
7.3.10.0040.00916.76
7.3.00.0020.01216.90
7.2.330.0070.01716.91
7.2.320.0080.01216.99
7.2.310.0140.01216.69
7.2.300.0120.00616.80
7.2.290.0190.00016.95
7.2.130.0060.00717.11
7.2.120.0050.01016.91
7.2.110.0080.01016.85
7.2.100.0040.01217.14
7.2.90.0130.00816.90
7.2.80.0100.00517.00
7.2.70.0080.00717.19
7.2.60.0070.01116.82
7.2.50.0070.00717.16
7.2.40.0070.00717.13
7.2.30.0070.01217.03
7.2.20.0060.01317.12
7.2.10.0090.00717.15
7.2.00.0090.00817.79
7.1.250.0060.00916.07
7.1.100.0060.00918.31
7.1.70.0000.00917.38
7.1.60.0060.01319.82
7.1.50.0070.01417.30
7.1.00.0030.08322.51
7.0.200.0000.00816.65
7.0.140.0000.08022.04
7.0.100.0200.08020.00
7.0.90.0000.04720.09
7.0.80.0130.04020.00
7.0.70.0100.03720.03
7.0.60.0000.05719.99
7.0.50.0100.04020.32
7.0.40.0000.05020.16
7.0.30.0030.05320.13
7.0.20.0070.04320.19
7.0.10.0070.04320.20
7.0.00.0030.04720.22
5.6.280.0030.07721.15
5.6.250.0130.03320.66
5.6.240.0030.04320.58
5.6.230.0100.04020.63
5.6.220.0030.04020.57
5.6.210.0030.04720.64
5.6.200.0030.05021.11
5.6.190.0100.04020.95
5.6.180.0170.04020.95
5.6.170.0070.04321.02
5.6.160.0070.05021.06
5.6.150.0070.04721.18
5.6.140.0070.04321.04
5.6.130.0000.05721.06
5.6.120.0070.05721.13
5.6.110.0030.04721.00
5.6.100.0000.05321.02
5.6.90.0000.05020.98
5.6.80.0070.05320.54
5.6.70.0070.08720.46
5.6.60.0100.05720.39
5.6.50.0230.07020.55
5.6.40.0100.08720.29
5.6.30.0030.04720.29
5.6.20.0100.04720.43
5.6.10.0100.05020.30
5.6.00.0070.08320.30
5.5.380.0070.04020.50
5.5.370.0070.04020.42
5.5.360.0100.04020.35
5.5.350.0070.05020.35
5.5.340.0030.04720.64
5.5.330.0070.04320.87
5.5.320.0070.04320.91
5.5.310.0030.04720.64
5.5.300.0100.04020.87
5.5.290.0030.05320.91
5.5.280.0230.03020.64
5.5.270.0000.05020.88
5.5.260.0130.03720.76
5.5.250.0070.07720.74
5.5.240.0100.09020.01
5.5.230.0100.07020.24
5.5.220.0100.07320.24
5.5.210.0100.07320.21
5.5.200.0200.06320.26
5.5.190.0230.08320.21
5.5.180.0100.08320.11
5.5.160.0100.07320.23
5.5.150.0100.07320.12
5.5.140.0130.07319.96
5.5.130.0070.07720.25
5.5.120.0070.06320.27
5.5.110.0070.08320.22
5.5.100.0100.08720.05
5.5.90.0030.07020.07
5.5.80.0100.04319.95
5.5.70.0170.07719.96
5.5.60.0100.07320.05
5.5.50.0100.08320.03
5.5.40.0070.08720.04
5.5.30.0070.07720.04
5.5.20.0030.08320.04
5.5.10.0170.07020.04
5.5.00.0130.08320.08
5.4.450.0030.04319.40
5.4.440.0070.04319.22
5.4.430.0100.05019.43
5.4.420.0000.05019.37
5.4.410.0070.08319.10
5.4.400.0030.08718.97
5.4.390.0130.08019.05
5.4.380.0030.07719.05
5.4.370.0070.07019.05
5.4.360.0030.09018.95
5.4.350.0000.06719.06
5.4.340.0170.04319.23
5.4.320.0100.08318.89
5.4.310.0130.07318.91
5.4.300.0130.04319.11
5.4.290.0030.04318.96
5.4.280.0130.06319.02
5.4.270.0070.05318.90
5.4.260.0100.06719.02
5.4.250.0070.06718.78
5.4.240.0100.08018.97
5.4.230.0100.06719.09
5.4.220.0070.11018.91
5.4.210.0070.07719.09
5.4.200.0070.08318.95
5.4.190.0170.07319.00
5.4.180.0070.04318.96
5.4.170.0030.08019.13
5.4.160.0130.04318.92
5.4.150.0230.06319.10
5.4.140.0100.07316.28
5.4.130.0030.08716.41
5.4.120.0070.07716.27
5.4.110.0030.07016.21
5.4.100.0030.07716.33
5.4.90.0070.07316.40
5.4.80.0000.07016.36
5.4.70.0100.04716.31
5.4.60.0070.06716.19
5.4.50.0070.05716.20
5.4.40.0130.07316.39
5.4.30.0170.06316.23
5.4.20.0030.07716.30
5.4.10.0070.07316.18
5.4.00.0000.07715.77
5.3.290.0170.07714.68
5.3.280.0100.06714.46
5.3.270.0130.08314.60
5.3.260.0070.09314.46
5.3.250.0100.08014.60
5.3.240.0070.08014.55
5.3.230.0070.08014.46
5.3.220.0030.07714.43
5.3.210.0000.06314.53
5.3.200.0030.05314.51
5.3.190.0100.08314.56
5.3.180.0030.08314.56
5.3.170.0030.05014.57
5.3.160.0030.04714.38
5.3.150.0070.07714.43
5.3.140.0070.07714.47
5.3.130.0170.03714.54
5.3.120.0070.07714.40
5.3.110.0100.07014.41
5.3.100.0030.07014.05
5.3.90.0070.06713.93
5.3.80.0100.07713.93
5.3.70.0000.08013.95
5.3.60.0100.04013.86
5.3.50.0070.08313.91
5.3.40.0100.05713.95
5.3.30.0030.06713.76
5.3.20.0070.07713.66
5.3.10.0000.05013.63
5.3.00.0070.07013.64
5.2.170.0030.05012.14
5.2.160.0070.06712.14
5.2.150.0070.06012.14
5.2.140.0070.03712.14
5.2.130.0130.04712.14
5.2.120.0100.06012.14
5.2.110.0030.06712.14
5.2.100.0030.04012.14
5.2.90.0000.06712.14
5.2.80.0070.03712.14
5.2.70.0070.05712.14
5.2.60.0000.06312.14
5.2.50.0070.04312.14
5.2.40.0030.04712.14
5.2.30.0030.06312.14
5.2.20.0000.08312.14
5.2.10.0030.04712.14
5.2.00.0070.07312.14
5.1.60.0000.04312.14
5.1.50.0070.06012.14
5.1.40.0030.05712.14
5.1.30.0070.07312.14
5.1.20.0130.07712.14
5.1.10.0000.05712.14
5.1.00.0030.04712.14
5.0.50.0030.04712.14
5.0.40.0000.04312.14
5.0.30.0100.06012.14
5.0.20.0000.05012.14
5.0.10.0100.02712.14
5.0.00.0070.03712.14
4.4.90.0030.06012.14
4.4.80.0000.05712.14
4.4.70.0070.05012.14
4.4.60.0070.05012.14
4.4.50.0030.05312.14
4.4.40.0030.06312.14
4.4.30.0130.05012.14
4.4.20.0070.06712.14
4.4.10.0070.06012.14
4.4.00.0000.09012.14
4.3.110.0000.03312.14
4.3.100.0070.03012.14
4.3.90.0030.02712.14
4.3.80.0030.06012.14
4.3.70.0000.03012.14
4.3.60.0030.02012.14
4.3.50.0070.01012.14
4.3.40.0030.03712.14
4.3.30.0000.04012.14
4.3.20.0000.02712.14
4.3.10.0030.02712.14
4.3.00.0030.03312.14

preferences:
105.32 ms | 400 KiB | 5 Q