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'; $urls = preg_replace( $urlRegex1 . 'facebook' . $urlRegex2, 'http://www.facebook.com', $fullURLSample ); var_dump( preg_last_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.0100.01017.00
8.3.60.0060.01218.68
8.3.50.0130.01222.11
8.3.40.0060.01318.92
8.3.30.0090.00919.13
8.3.20.0040.00720.34
8.3.10.0070.00321.95
8.3.00.0070.00422.43
8.2.190.0100.01418.66
8.2.180.0140.01416.88
8.2.170.0090.00922.96
8.2.160.0090.00919.16
8.2.150.0080.00324.18
8.2.140.0030.00724.66
8.2.130.0060.00326.16
8.2.120.0040.00719.61
8.2.110.0040.00822.20
8.2.100.0090.00620.01
8.2.90.0040.00719.17
8.2.80.0060.00618.05
8.2.70.0000.01217.61
8.2.60.0060.00618.05
8.2.50.0070.00418.07
8.2.40.0080.00418.34
8.2.30.0040.00718.24
8.2.20.0000.01117.92
8.2.10.0040.00718.09
8.2.00.0060.00918.05
8.1.280.0090.00925.92
8.1.270.0030.00822.21
8.1.260.0100.00026.35
8.1.250.0070.00428.09
8.1.240.0040.00723.92
8.1.230.0040.01119.18
8.1.220.0060.00618.01
8.1.210.0040.00718.77
8.1.200.0070.00717.60
8.1.190.0060.00617.63
8.1.180.0000.01219.02
8.1.170.0040.00818.64
8.1.160.0030.00722.27
8.1.150.0040.00818.90
8.1.140.0000.01117.72
8.1.130.0070.00317.88
8.1.120.0030.00917.72
8.1.110.0040.00717.61
8.1.100.0000.01017.68
8.1.90.0060.00617.55
8.1.80.0080.00317.72
8.1.70.0000.01017.67
8.1.60.0060.00617.82
8.1.50.0080.00317.74
8.1.40.0000.01117.62
8.1.30.0000.01117.75
8.1.20.0060.00617.90
8.1.10.0000.01117.60
8.1.00.0000.01117.62
8.0.300.0000.01018.77
8.0.290.0030.00717.18
8.0.280.0030.00718.58
8.0.270.0080.00417.30
8.0.260.0000.01017.14
8.0.250.0030.00717.34
8.0.240.0000.01117.13
8.0.230.0000.01117.24
8.0.220.0070.00317.09
8.0.210.0070.00317.13
8.0.200.0000.01017.29
8.0.190.0070.00317.19
8.0.180.0070.00717.16
8.0.170.0060.00617.17
8.0.160.0050.00517.08
8.0.150.0030.00917.23
8.0.140.0030.00917.22
8.0.130.0000.00913.73
8.0.120.0030.00917.21
8.0.110.0030.00917.11
8.0.100.0050.00517.29
8.0.90.0060.00617.04
8.0.80.0100.01317.14
8.0.70.0000.01117.30
8.0.60.0030.00917.19
8.0.50.0000.01117.23
8.0.30.0070.01717.48
8.0.20.0050.02117.49
8.0.10.0030.00817.21
8.0.00.0150.01117.01
7.4.330.0000.00915.19
7.4.320.0000.01016.73
7.4.300.0070.00317.02
7.4.290.0040.00816.92
7.4.280.0040.00816.72
7.4.270.0030.00716.89
7.4.260.0070.00316.72
7.4.250.0030.00716.91
7.4.240.0020.00916.86
7.4.230.0000.01016.68
7.4.220.0070.01816.73
7.4.210.0110.01216.88
7.4.200.0070.00416.90
7.4.190.0000.01016.94
7.4.160.0040.01816.73
7.4.150.0110.01417.40
7.4.140.0120.01517.86
7.4.130.0080.01716.84
7.4.120.0060.01816.68
7.4.110.0280.04416.64
7.4.100.0060.01816.86
7.4.90.0140.01116.75
7.4.80.0150.00919.39
7.4.70.0060.01916.71
7.4.60.0070.01616.63
7.4.50.0060.00616.82
7.4.40.0070.01322.77
7.4.30.0100.01616.75
7.4.00.0130.00615.14
7.3.330.0000.00813.32
7.3.320.0030.00613.26
7.3.310.0060.00616.30
7.3.300.0030.00716.48
7.3.290.0140.01416.55
7.3.280.0080.01316.44
7.3.270.0150.00917.40
7.3.260.0120.01216.43
7.3.250.0090.01616.72
7.3.240.0110.01116.70
7.3.230.0140.01416.54
7.3.210.0100.02216.56
7.3.200.0150.00916.41
7.3.190.0070.02116.35
7.3.180.0100.01316.43
7.3.170.0140.01216.56
7.3.160.0100.01416.48
7.3.120.0070.01414.73
7.3.10.0000.01516.62
7.3.00.0000.01916.63
7.2.330.0100.01316.87
7.2.320.0100.01316.78
7.2.310.0150.00916.96
7.2.300.0100.01316.73
7.2.290.0100.01316.79
7.2.130.0060.01316.83
7.2.120.0070.01016.75
7.2.110.0070.01416.58
7.2.100.0070.01416.95
7.2.90.0080.01617.03
7.2.80.0180.00717.04
7.2.70.0040.01217.01
7.2.60.0040.01717.00
7.2.50.0060.02316.96
7.2.40.0120.00916.96
7.2.30.0160.00716.96
7.2.20.0070.01317.14
7.2.10.0000.02217.00
7.2.00.0060.01618.39
7.1.250.0110.00915.43
7.1.200.0100.01015.95
7.1.100.0040.01418.26
7.1.70.0000.01117.54
7.1.60.0100.01319.82
7.1.50.0100.02417.04
7.1.00.0000.08322.41
7.0.200.0030.00916.93
7.0.140.0000.07722.03
7.0.100.0100.06019.96
7.0.90.0100.10319.99
7.0.80.0200.05319.98
7.0.70.0430.06320.04
7.0.60.0170.05319.95
7.0.50.0130.08020.38
7.0.40.0070.09720.23
7.0.30.0130.08020.14
7.0.20.0170.08020.04
7.0.10.0130.06720.13
7.0.00.0100.04720.13
5.6.280.0030.09721.04
5.6.250.0100.05020.59
5.6.240.0030.10020.61
5.6.230.0070.08720.74
5.6.220.0100.09320.61
5.6.210.0070.10320.55
5.6.200.0100.08321.10
5.6.190.0030.05720.95
5.6.180.0100.09721.00
5.6.170.0030.11020.95
5.6.160.0030.07021.04
5.6.150.0170.08721.11
5.6.140.0100.10321.11
5.6.130.0030.11320.93
5.6.120.0000.06721.11
5.6.110.0030.09721.00
5.6.100.0030.10021.03
5.6.90.0030.08320.90
5.6.80.0000.14720.43
5.6.70.0070.13720.32
5.6.60.0070.13320.47
5.6.50.0130.13020.27
5.6.40.0030.08720.36
5.6.30.0000.11320.46
5.6.20.0030.14320.38
5.6.10.0100.14020.39
5.6.00.0070.14720.47
5.5.380.0030.06720.37
5.5.370.0000.09320.57
5.5.360.0100.09020.43
5.5.350.0070.07720.42
5.5.340.0030.09320.92
5.5.330.0100.08320.78
5.5.320.0130.10320.93
5.5.310.0030.10020.88
5.5.300.0030.07320.92
5.5.290.0100.06720.92
5.5.280.0030.10320.86
5.5.270.0100.05720.63
5.5.260.0100.07020.72
5.5.250.0130.06320.70
5.5.240.0130.13020.25
5.5.230.0030.14020.29
5.5.220.0030.11720.30
5.5.210.0000.15320.21
5.5.200.0130.13720.11
5.5.190.0070.14720.18
5.5.180.0170.13320.11
5.5.160.0030.08320.26
5.5.150.0030.12320.18
5.5.140.0100.13320.22
5.5.130.0070.13720.20
5.5.120.0070.14320.08
5.5.110.0100.13320.14
5.5.100.0000.12019.98
5.5.90.0030.13020.06
5.5.80.0100.10320.04
5.5.70.0030.12019.93
5.5.60.0070.09020.10
5.5.50.0130.13020.16
5.5.40.0100.10320.09
5.5.30.0030.13320.03
5.5.20.0100.07320.09
5.5.10.0070.13020.11
5.5.00.0100.13020.11
5.4.450.0070.10019.31
5.4.440.0100.08319.13
5.4.430.0070.09719.28
5.4.420.0030.05319.45
5.4.410.0030.05319.31
5.4.400.0070.07719.01
5.4.390.0070.10318.98
5.4.380.0030.11318.99
5.4.370.0070.10719.09
5.4.360.0130.12319.09
5.4.350.0100.10019.00
5.4.340.0030.10719.06
5.4.320.0200.11318.84
5.4.310.0070.07018.93
5.4.300.0070.10319.10
5.4.290.0070.10019.10
5.4.280.0000.13319.12
5.4.270.0100.10318.98
5.4.260.0070.07719.14
5.4.250.0100.11719.05
5.4.240.0130.12019.04
5.4.230.0070.07719.00
5.4.220.0070.13718.91
5.4.210.0030.12019.25
5.4.200.0100.11018.98
5.4.190.0070.09319.04
5.4.180.0070.10318.94
5.4.170.0100.06719.11
5.4.160.0030.14019.12
5.4.150.0000.13719.14
5.4.140.0030.07016.27
5.4.130.0130.03716.26
5.4.120.0000.05316.26
5.4.110.0070.05016.44
5.4.100.0070.04716.35
5.4.90.0030.09716.23
5.4.80.0130.09016.30
5.4.70.0000.11016.34
5.4.60.0000.06716.29
5.4.50.0000.06716.20
5.4.40.0070.08716.35
5.4.30.0030.09316.22
5.4.20.0100.09316.37
5.4.10.0000.08316.29
5.4.00.0070.10015.69
5.3.290.0100.13314.66
5.3.280.0000.13314.61
5.3.270.0070.16314.49
5.3.260.0070.17014.64
5.3.250.0070.16714.45
5.3.240.0070.16714.45
5.3.230.0030.09714.62
5.3.220.0100.08314.52
5.3.210.0130.08314.60
5.3.200.0030.09314.59
5.3.190.0030.09714.43
5.3.180.0070.09014.46
5.3.170.0070.07314.57
5.3.160.0070.09014.55
5.3.150.0130.09314.57
5.3.140.0070.06014.60
5.3.130.0030.07014.45
5.3.120.0000.07714.58
5.3.110.0130.10014.60
5.3.100.0070.08713.98
5.3.90.0070.09014.00
5.3.80.0070.07313.91
5.3.70.0170.08013.91
5.3.60.0030.05314.01
5.3.50.0170.07013.88
5.3.40.0030.05713.83
5.3.30.0100.07313.69
5.3.20.0100.07313.66
5.3.10.0100.07313.54
5.3.00.0000.07713.57
5.2.170.0070.06311.18
5.2.160.0030.07011.21
5.2.150.0000.06011.02
5.2.140.0170.05311.16
5.2.130.0000.07310.94
5.2.120.0030.07011.11
5.2.110.0030.07710.96
5.2.100.0000.04311.19
5.2.90.0100.04310.98
5.2.80.0070.06710.98
5.2.70.0070.06311.07
5.2.60.0070.08010.86
5.2.50.0030.07711.02
5.2.40.0030.08010.95
5.2.30.0030.06010.93
5.2.20.0070.03311.03
5.2.10.0070.05010.93
5.2.00.0070.07710.75
5.1.60.0070.11310.06
5.1.50.0100.10710.08
5.1.40.0030.0879.89
5.1.30.0000.07010.38
5.1.20.0030.09010.41
5.1.10.0030.12010.11
5.1.00.0070.11710.18
5.0.50.0070.1038.63
5.0.40.0030.0778.43
5.0.30.0000.0978.25
5.0.20.0070.0738.29
5.0.10.0030.0778.08
5.0.00.0100.0678.27
4.4.90.0030.0808.04
4.4.80.0070.0438.04
4.4.70.0000.0938.04
4.4.60.0130.0738.04
4.4.50.0070.0738.04
4.4.40.0000.1008.04
4.4.30.0030.0978.04
4.4.20.0070.0738.04
4.4.10.0100.0708.04
4.4.00.0070.1138.04
4.3.110.0030.0678.04
4.3.100.0070.0678.04
4.3.90.0000.0478.04
4.3.80.0000.0578.04
4.3.70.0070.0708.04
4.3.60.0030.0708.04
4.3.50.0070.0638.04
4.3.40.0000.0938.04
4.3.30.0030.0638.04
4.3.20.0000.0208.04
4.3.10.0030.0338.04
4.3.00.0030.0338.04

preferences:
64.86 ms | 401 KiB | 5 Q