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.56
8.3.50.0130.00522.10
8.3.40.0190.00618.91
8.3.30.0100.00619.22
8.3.20.0060.00320.38
8.3.10.0030.00621.92
8.3.00.0030.00622.52
8.2.180.0030.01318.49
8.2.170.0100.00722.96
8.2.160.0060.01318.99
8.2.150.0090.00024.18
8.2.140.0030.00624.66
8.2.130.0030.00626.16
8.2.120.0040.00419.73
8.2.110.0100.00022.20
8.2.100.0070.00720.01
8.2.90.0090.00019.34
8.2.80.0030.00618.17
8.2.70.0040.00718.00
8.2.60.0000.00918.18
8.2.50.0000.00918.07
8.2.40.0100.00018.34
8.2.30.0060.00318.17
8.2.20.0000.00917.98
8.2.10.0030.00618.08
8.2.00.0060.00317.98
8.1.280.0100.01325.92
8.1.270.0040.00422.26
8.1.260.0040.00726.35
8.1.250.0030.00628.09
8.1.240.0060.00323.84
8.1.230.0100.00319.20
8.1.220.0040.00417.89
8.1.210.0060.00318.77
8.1.200.0030.00717.60
8.1.190.0030.00617.53
8.1.180.0000.01018.69
8.1.170.0060.00318.66
8.1.160.0000.00822.22
8.1.150.0060.00318.90
8.1.140.0000.01417.60
8.1.130.0030.00517.88
8.1.120.0040.00417.65
8.1.110.0000.01017.60
8.1.100.0000.00917.67
8.1.90.0030.00617.68
8.1.80.0030.00617.55
8.1.70.0050.00317.66
8.1.60.0000.00917.68
8.1.50.0060.00317.73
8.1.40.0040.00417.63
8.1.30.0050.00517.84
8.1.20.0000.00917.73
8.1.10.0040.00417.73
8.1.00.0040.00717.62
8.0.300.0030.00618.77
8.0.290.0030.00617.43
8.0.280.0000.00918.60
8.0.270.0060.00317.26
8.0.260.0050.00317.03
8.0.250.0080.00017.27
8.0.240.0030.00617.16
8.0.230.0050.00317.36
8.0.220.0040.00417.12
8.0.210.0080.00017.23
8.0.200.0040.00417.17
8.0.190.0030.00617.18
8.0.180.0060.00317.21
8.0.170.0000.00917.23
8.0.160.0000.00917.15
8.0.150.0070.00717.07
8.0.140.0030.00617.20
8.0.130.0000.00713.69
8.0.120.0030.00617.20
8.0.110.0030.00617.11
8.0.100.0100.00017.19
8.0.90.0030.00617.17
8.0.80.0120.01617.18
8.0.70.0090.00017.02
8.0.60.0000.00917.10
8.0.50.0060.00317.21
8.0.30.0090.01517.34
8.0.20.0120.01617.52
8.0.10.0030.00617.17
8.0.00.0090.01116.92
7.4.330.0000.00615.00
7.4.320.0040.00416.76
7.4.300.0000.00816.83
7.4.290.0040.00416.94
7.4.280.0040.00416.82
7.4.270.0000.00916.95
7.4.260.0040.00716.82
7.4.250.0030.00616.76
7.4.240.0020.00716.92
7.4.230.0000.00817.02
7.4.220.0060.02116.87
7.4.210.0060.01016.88
7.4.200.0040.00416.93
7.4.190.0040.00416.95
7.4.160.0090.00916.70
7.4.150.0060.01617.40
7.4.140.0080.01617.86
7.4.130.0150.00916.75
7.4.120.0030.01816.71
7.4.110.0080.01216.75
7.4.100.0030.01616.70
7.4.90.0130.00616.93
7.4.80.0110.01219.39
7.4.70.0090.01216.89
7.4.60.0130.01016.71
7.4.50.0030.00716.86
7.4.40.0140.00422.77
7.4.30.0050.01416.85
7.4.00.0160.00315.27
7.3.330.0040.00413.26
7.3.320.0000.00613.22
7.3.310.0000.00816.49
7.3.300.0000.00816.54
7.3.290.0060.01216.53
7.3.280.0070.01216.58
7.3.270.0090.00917.40
7.3.260.0030.01716.86
7.3.250.0080.01016.52
7.3.240.0000.01816.92
7.3.230.0150.00816.48
7.3.210.0000.01916.78
7.3.200.0090.01919.39
7.3.190.0000.02216.79
7.3.180.0070.01116.56
7.3.170.0090.00916.88
7.3.160.0060.01316.68
7.3.120.0000.01414.96
7.3.10.0070.01017.02
7.3.00.0040.00816.95
7.2.330.0110.01116.82
7.2.320.0060.01616.84
7.2.310.0120.01516.87
7.2.300.0030.01616.87
7.2.290.0000.01816.71
7.2.130.0100.00317.06
7.2.120.0000.01717.17
7.2.110.0030.01017.27
7.2.100.0040.01517.20
7.2.90.0040.01417.17
7.2.80.0100.00717.27
7.2.70.0070.01117.20
7.2.60.0030.01017.01
7.2.50.0120.00616.84
7.2.40.0090.00917.34
7.2.30.0120.00617.08
7.2.20.0070.01017.25
7.2.10.0060.01017.21
7.2.00.0030.01318.43
7.1.250.0030.00916.05
7.1.200.0100.00316.09
7.1.100.0030.01218.36
7.1.70.0030.00617.58
7.1.60.0070.02019.82
7.1.50.0170.01017.13
7.1.00.0000.09322.41
7.0.200.0070.00716.99
7.0.140.0070.07022.03
7.0.60.0070.06320.04
7.0.50.0070.08017.91
7.0.40.0070.09719.98
7.0.30.0230.06020.16
7.0.20.0100.05020.08
7.0.10.0330.04320.24
7.0.00.0100.07720.36
5.6.210.0070.08720.66
5.6.200.0100.08318.08
5.6.190.0030.04720.64
5.6.180.3200.04020.43
5.6.170.0200.04720.71
5.6.160.0170.08020.54
5.6.150.0100.08018.17
5.6.140.0030.08718.21
5.6.130.0130.07718.16
5.6.120.0070.08021.11
5.6.110.0100.08721.09
5.6.100.0030.05021.11
5.6.90.0170.08320.94
5.6.80.0030.04320.35
5.6.70.4370.05020.36
5.5.350.0000.05020.38
5.5.340.0030.05718.02
5.5.330.0000.06320.21
5.5.320.0230.05720.21
5.5.310.0330.04020.50
5.5.300.0000.04717.98
5.5.290.0130.08717.95
5.5.280.0070.09020.77
5.5.270.0030.05320.79
5.5.260.0070.07320.64
5.5.250.0070.08720.55
5.5.240.0070.06320.19
5.4.450.0430.08319.64
5.4.440.0330.07019.54
5.4.430.0470.06719.09
5.4.420.0270.06319.13
5.4.410.0570.06019.35
5.4.400.0930.00018.75
5.4.390.0870.00018.66
5.4.380.0330.05018.77
5.4.370.1230.06018.61
5.4.360.0870.05718.47
5.4.350.1200.06318.61
5.4.340.0800.06318.67
5.4.320.0060.04012.47
5.4.310.0050.04312.46
5.4.300.0050.04612.46
5.4.290.0050.04612.46
5.4.280.0070.04312.36
5.4.270.0120.04712.36
5.4.260.0130.06018.82
5.4.250.0170.07018.85
5.4.240.0030.06718.88
5.4.230.0170.08018.92
5.4.220.0270.06718.92
5.4.210.0100.06718.68
5.4.200.0100.07318.70
5.4.190.0070.08318.68
5.4.180.0170.05018.85
5.4.170.0230.06318.99
5.4.160.0070.06718.91
5.4.150.0070.06318.80
5.4.140.0030.06016.46
5.4.130.0130.06716.45
5.4.120.0030.06016.23
5.4.110.0130.05016.33
5.4.100.0100.05316.48
5.4.90.0070.05016.49
5.4.80.0030.05716.37
5.4.70.0070.06016.47
5.4.60.0100.07316.30
5.4.50.0030.05716.45
5.4.40.0070.08016.36
5.4.30.0100.05316.15
5.4.20.0130.05016.40
5.4.10.0100.06016.45
5.4.00.0100.05015.93
5.3.290.0060.04412.80
5.3.280.0100.05314.36
5.3.270.0000.09314.61
5.3.260.0070.06014.50
5.3.250.0100.07014.38
5.3.240.0100.05314.70
5.3.230.0070.05314.47
5.3.220.0170.04714.45
5.3.210.0100.07014.58
5.3.200.0100.05314.43
5.3.190.0070.06714.44
5.3.180.0100.06714.73
5.3.170.0000.06314.66
5.3.160.0130.05714.48
5.3.150.0030.06314.58
5.3.140.0070.07714.26
5.3.130.0030.06014.56
5.3.120.0130.06714.64
5.3.110.0070.07714.57
5.3.100.0070.05314.04
5.3.90.0170.04313.71
5.3.80.0100.05014.04
5.3.70.0030.07714.02
5.3.60.0130.04713.87
5.3.50.0130.05014.11
5.3.40.0070.05313.65
5.3.30.0100.04713.93
5.3.20.0070.05713.53
5.3.10.0070.05013.66
5.3.00.0030.07313.49
5.2.170.0000.05311.04
5.2.160.0070.04011.04
5.2.150.0030.05011.04
5.2.140.0070.04311.30
5.2.130.0030.04711.02
5.2.120.0100.05011.04
5.2.110.0030.04711.12
5.2.100.0100.05310.98
5.2.90.0070.05011.00
5.2.80.0100.06010.85
5.2.70.0130.04011.04
5.2.60.0030.06011.20
5.2.50.0000.06011.04
5.2.40.0100.05310.91
5.2.30.0070.06011.00
5.2.20.0000.06710.98
5.2.10.0030.06010.92
5.2.00.0070.07310.80
5.1.60.0000.05710.09
5.1.50.0000.0539.77
5.1.40.0030.05310.17
5.1.30.0030.06010.41
5.1.20.0070.06010.44
5.1.10.0130.05310.12
5.1.00.0030.06310.10
5.0.50.0000.0678.43
5.0.40.0030.0278.43
5.0.30.0000.0478.25
5.0.20.0070.0238.25
5.0.10.0030.0278.23
5.0.00.0070.0378.30
4.4.90.0000.0606.44
4.4.80.0100.0506.44
4.4.70.0070.0376.44
4.4.60.0000.0476.44
4.4.50.0000.0576.44
4.4.40.0000.0536.44
4.4.30.0070.0336.44
4.4.20.0030.0676.44
4.4.10.0130.0406.44
4.4.00.0100.0536.44
4.3.110.0000.0276.44
4.3.100.0000.0236.44
4.3.90.0030.0206.44
4.3.80.0070.0306.44
4.3.70.0000.0376.44
4.3.60.0070.0176.44
4.3.50.0070.0236.44
4.3.40.0030.0436.44
4.3.30.0000.0236.44
4.3.20.0000.0236.44
4.3.10.0000.0236.44
4.3.00.0030.0206.93

preferences:
48.9 ms | 400 KiB | 5 Q