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 . 'linkedin' . $urlRegex2, 'http://www.linkedin.com/profile/view?id=123456789', $fullURLSample ); 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.40.0130.00618.95
8.3.30.0070.01419.18
8.3.20.0080.00320.52
8.3.10.0080.00321.83
8.3.00.0070.00322.50
8.2.170.0080.01122.96
8.2.160.0040.01519.38
8.2.150.0070.00324.18
8.2.140.0050.00524.66
8.2.130.0070.00326.16
8.2.120.0070.00419.86
8.2.110.0090.00320.47
8.2.100.0090.00618.03
8.2.90.0060.00619.20
8.2.80.0000.01218.05
8.2.70.0030.00917.63
8.2.60.0060.00617.93
8.2.50.0060.00618.07
8.2.40.0030.00918.34
8.2.30.0040.00718.30
8.2.20.0050.00517.97
8.2.10.0080.00318.00
8.2.00.0040.00818.13
8.1.270.0040.00722.30
8.1.260.0050.00526.35
8.1.250.0030.00828.09
8.1.240.0090.00622.16
8.1.230.0060.00922.21
8.1.220.0000.01117.90
8.1.210.0080.00418.77
8.1.200.0070.00717.60
8.1.190.0040.00817.53
8.1.180.0040.00718.89
8.1.170.0040.00818.77
8.1.160.0040.00722.21
8.1.150.0040.00818.96
8.1.140.0030.00817.73
8.1.130.0070.00317.96
8.1.120.0000.01117.61
8.1.110.0000.01117.63
8.1.100.0040.00717.71
8.1.90.0040.00717.62
8.1.80.0040.00717.70
8.1.70.0080.00417.58
8.1.60.0060.00617.83
8.1.50.0070.00417.73
8.1.40.0000.01217.71
8.1.30.0000.01117.80
8.1.20.0000.01117.69
8.1.10.0030.00917.61
8.1.00.0070.00717.64
8.0.300.0070.00418.77
8.0.290.0040.00717.14
8.0.280.0070.00318.49
8.0.270.0030.00717.29
8.0.260.0070.00317.19
8.0.250.0000.01117.22
8.0.240.0040.00717.25
8.0.230.0030.01017.28
8.0.220.0050.00517.25
8.0.210.0000.01017.28
8.0.200.0030.00717.34
8.0.190.0040.00817.23
8.0.180.0000.01217.20
8.0.170.0060.00617.21
8.0.160.0000.01217.21
8.0.150.0030.00917.23
8.0.140.0030.00917.16
8.0.130.0080.00313.69
8.0.120.0030.00917.20
8.0.110.0060.00617.19
8.0.100.0060.00617.24
8.0.90.0030.00817.11
8.0.80.0100.01317.14
8.0.70.0000.01217.22
8.0.60.0060.00617.07
8.0.50.0000.01117.29
8.0.30.0100.02217.19
8.0.20.0110.01417.44
8.0.10.0070.00417.11
8.0.00.0130.01116.96
7.4.330.0030.00615.12
7.4.320.0000.01016.85
7.4.300.0060.00616.82
7.4.290.0030.00816.88
7.4.280.0030.00716.79
7.4.270.0030.00716.92
7.4.260.0000.01116.96
7.4.250.0060.00616.88
7.4.240.0040.00716.87
7.4.230.0000.01116.95
7.4.220.0090.01616.72
7.4.210.0080.01516.86
7.4.200.0070.00416.85
7.4.190.0000.01116.75
7.4.160.0120.01216.67
7.4.150.0160.00817.40
7.4.140.0090.01617.86
7.4.130.0070.01816.89
7.4.120.0100.01616.72
7.4.110.0070.01516.64
7.4.100.0130.01316.84
7.4.90.0090.01516.76
7.4.80.0090.01619.39
7.4.70.0170.01316.65
7.4.60.0060.02516.71
7.4.50.0060.00616.53
7.4.40.0040.01822.77
7.4.30.0070.02416.69
7.4.00.0060.01415.14
7.3.330.0040.00413.13
7.3.320.0030.00613.26
7.3.310.0030.00716.27
7.3.300.0000.01216.43
7.3.290.0100.01016.46
7.3.280.0080.01416.42
7.3.270.0150.00917.40
7.3.260.0120.01316.36
7.3.250.0080.01716.56
7.3.240.0060.01616.45
7.3.230.0190.00616.53
7.3.210.0090.01816.57
7.3.200.0130.01319.39
7.3.190.0140.01016.51
7.3.180.0040.01816.58
7.3.170.0190.01016.60
7.3.160.0060.01716.55
7.3.120.0070.01515.10
7.3.110.0030.01915.24
7.3.100.0090.00914.85
7.3.90.0000.02414.75
7.3.80.0100.01615.09
7.3.70.0120.01215.01
7.3.60.0030.01515.07
7.3.50.0070.00714.67
7.3.40.0180.00614.90
7.3.30.0000.01815.11
7.3.20.0140.00716.96
7.3.10.0060.01316.77
7.3.00.0030.01616.58
7.2.330.0040.02116.75
7.2.320.0130.02016.64
7.2.310.0170.01616.78
7.2.300.0060.02616.71
7.2.290.0090.02516.75
7.2.250.0140.01415.34
7.2.240.0100.01315.42
7.2.230.0130.01315.39
7.2.220.0070.01915.16
7.2.210.0070.02014.93
7.2.200.0060.01315.30
7.2.190.0070.01015.18
7.2.180.0070.01415.17
7.2.170.0060.01914.92
7.2.00.0100.01319.89
7.1.330.0060.01216.18
7.1.320.0100.01616.07
7.1.310.0000.02016.20
7.1.300.0030.01215.97
7.1.290.0000.01815.78
7.1.280.0060.01515.93
7.1.270.0110.00715.68
7.1.260.0060.00616.00
7.1.100.0000.02018.59
7.1.70.0120.00817.11
7.1.60.0100.02219.82
7.1.50.0060.00917.34
7.1.00.0030.09722.51
7.0.200.0060.01616.80
7.0.140.0170.07022.01
7.0.90.0500.07720.00
7.0.80.0600.07320.00
7.0.70.0370.04019.94
7.0.60.0370.06720.03
7.0.50.0430.08020.25
7.0.40.0100.07020.07
7.0.30.0070.07320.14
7.0.20.0200.08320.21
7.0.10.0100.09020.20
7.0.00.0170.08720.09
5.6.280.0000.10321.07
5.6.230.0170.05020.68
5.6.220.0070.07320.62
5.6.210.0000.06320.66
5.6.200.0130.10721.01
5.6.190.0170.09021.07
5.6.180.0100.09720.96
5.6.170.0070.06021.03
5.6.160.0030.11021.05
5.6.150.0170.07020.95
5.6.140.0130.06721.02
5.6.130.0170.10720.93
5.6.120.0100.09720.95
5.6.110.0070.10020.94
5.6.100.0170.06321.03
5.6.90.0130.07721.02
5.6.80.0070.15320.38
5.6.70.0000.09720.54
5.6.60.0100.09720.45
5.6.50.0100.13720.42
5.6.40.0100.08720.52
5.6.30.0070.11720.32
5.6.20.0030.10720.41
5.6.10.0070.13020.39
5.6.00.0200.12320.41
5.5.370.0030.09720.45
5.5.360.0200.09320.33
5.5.350.0170.10020.39
5.5.340.0100.11020.76
5.5.330.0130.09020.77
5.5.320.0100.11320.73
5.5.310.0130.10020.83
5.5.300.0130.05720.64
5.5.290.0200.06720.91
5.5.280.0100.08720.79
5.5.270.0100.10720.91
5.5.260.0070.06020.83
5.5.250.0000.07720.70
5.5.240.0100.08020.21
5.5.230.0030.11320.21
5.5.220.0000.10320.10
5.5.210.0100.12720.15
5.5.200.0100.10720.23
5.5.190.0030.15320.21
5.5.180.0130.09720.15
5.5.160.0070.14720.25
5.5.150.0070.10319.99
5.5.140.0000.09020.12
5.5.130.0070.12720.21
5.5.120.0000.14020.25
5.5.110.0070.12720.17
5.5.100.0000.10720.10
5.5.90.0100.08020.17
5.5.80.0000.13320.06
5.5.70.0130.08020.11
5.5.60.0030.13720.14
5.5.50.0030.09320.10
5.5.40.0100.13320.07
5.5.30.0070.11320.05
5.5.20.0070.08020.13
5.5.10.0030.14319.93
5.5.00.0070.09720.05
5.4.450.0130.07319.57
5.4.440.0070.06719.41
5.4.430.0100.05019.39
5.4.420.0030.06719.31
5.4.410.0030.10018.99
5.4.400.0070.07318.81
5.4.390.0000.13319.05
5.4.380.0130.07019.05
5.4.370.0370.10319.14
5.4.360.0070.10019.05
5.4.350.0070.12019.14
5.4.340.0070.08019.08
5.4.320.0070.13019.25
5.4.310.0070.07718.80
5.4.300.0000.08319.04
5.4.290.0070.11318.80
5.4.280.0070.08019.08
5.4.270.0100.13018.96
5.4.260.0130.11318.80
5.4.250.0030.07319.15
5.4.240.0070.12019.04
5.4.230.0030.08019.00
5.4.220.0100.13319.13
5.4.210.0100.11319.11
5.4.200.0130.10719.16
5.4.190.0030.11019.13
5.4.180.0070.11318.82
5.4.170.0070.13018.98
5.4.160.0070.07718.91
5.4.150.0000.08319.11
5.4.140.0200.10316.30
5.4.130.0030.05016.14
5.4.120.0030.05716.30
5.4.110.0070.11016.36
5.4.100.0070.09316.38
5.4.90.0100.05016.38
5.4.80.0030.10716.31
5.4.70.0000.06016.40
5.4.60.0070.06016.43
5.4.50.0070.06016.43
5.4.40.0100.06716.49
5.4.30.0100.08016.43
5.4.20.0100.09716.21
5.4.10.0030.10316.20
5.4.00.0000.06715.53
5.3.290.0030.08714.55
5.3.280.0000.08014.58
5.3.270.0070.16314.61
5.3.260.0100.17714.58
5.3.250.0030.11014.62
5.3.240.0030.16314.61
5.3.230.0070.10314.46
5.3.220.0070.09014.57
5.3.210.0030.10314.58
5.3.200.0130.09314.59
5.3.190.0030.05714.60
5.3.180.0170.09714.55
5.3.170.0030.09014.44
5.3.160.0070.05714.44
5.3.150.0000.10014.55
5.3.140.0100.09014.60
5.3.130.0030.06314.57
5.3.120.0130.09314.53
5.3.110.0070.10014.45
5.3.100.0030.09013.89
5.3.90.0000.10314.03
5.3.80.0030.05714.05
5.3.70.0130.08013.90
5.3.60.0130.07314.00
5.3.50.0030.06313.94
5.3.40.0030.08713.83
5.3.30.0070.05013.70
5.3.20.0070.08013.71
5.3.10.0100.06013.59
5.3.00.0070.07713.59
5.2.170.0030.03713.59
5.2.160.0030.06313.59
5.2.150.0070.07013.59
5.2.140.0030.04713.59
5.2.130.0100.06313.59
5.2.120.0070.05713.59
5.2.110.0170.05713.59
5.2.100.0000.07013.59
5.2.90.0000.04713.59
5.2.80.0100.05013.59
5.2.70.0070.03713.59
5.2.60.0000.05713.59
5.2.50.0070.07013.59
5.2.40.0030.04713.59
5.2.30.0000.04713.59
5.2.20.0030.08313.59
5.2.10.0070.08013.59
5.2.00.0030.08313.59
5.1.60.0000.10313.59
5.1.50.0000.10013.59
5.1.40.0100.10313.59
5.1.30.0000.07013.59
5.1.20.0100.11013.59
5.1.10.0070.07013.59
5.1.00.0030.11313.59
5.0.50.0030.06713.59
5.0.40.0030.04713.59
5.0.30.0000.05713.59
5.0.20.0030.06713.59
5.0.10.0030.04313.59
5.0.00.0000.10013.59
4.4.90.0000.07313.59
4.4.80.0000.06013.59
4.4.70.0000.05713.59
4.4.60.0030.05013.59
4.4.50.0030.06013.59
4.4.40.0030.10713.59
4.4.30.0000.09013.59
4.4.20.0000.11013.59
4.4.10.0030.05313.59
4.4.00.0030.09713.59
4.3.110.0000.07313.59
4.3.100.0000.03313.59
4.3.90.0070.04013.59
4.3.80.0030.07713.59
4.3.70.0030.06313.59
4.3.60.0030.03713.59
4.3.50.0030.06713.59
4.3.40.0000.07013.59
4.3.30.0000.04313.59
4.3.20.0000.02013.59
4.3.10.0000.01713.59
4.3.00.0000.02313.59

preferences:
39.25 ms | 400 KiB | 5 Q