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.linkedin.com/profile/', $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.60.0120.00618.68
8.3.50.0100.01222.30
8.3.40.0090.01218.97
8.3.30.0170.01319.27
8.3.20.0060.01320.11
8.3.10.0070.00322.11
8.3.00.0070.00322.28
8.2.180.0130.01317.13
8.2.170.0140.01422.96
8.2.160.0070.01119.16
8.2.150.0080.00324.18
8.2.140.0030.00724.66
8.2.130.0130.01326.16
8.2.120.0000.01019.50
8.2.110.0040.00822.22
8.2.100.0090.00619.82
8.2.90.0030.00919.36
8.2.80.0040.00718.04
8.2.70.0030.01017.75
8.2.60.0040.00717.93
8.2.50.0080.00318.07
8.2.40.0000.01218.22
8.2.30.0080.00419.97
8.2.20.0070.00417.85
8.2.10.0040.00718.13
8.2.00.0090.00718.00
8.1.280.0040.01525.92
8.1.270.0000.01122.10
8.1.260.0070.00326.35
8.1.250.0070.00328.09
8.1.240.0040.00723.91
8.1.230.0060.00919.14
8.1.220.0060.00618.00
8.1.210.0040.00818.77
8.1.200.0080.00417.60
8.1.190.0040.00717.66
8.1.180.0040.00718.73
8.1.170.0070.00418.68
8.1.160.0030.00722.26
8.1.150.0040.00718.85
8.1.140.0000.01117.62
8.1.130.0040.00717.96
8.1.120.0030.00717.64
8.1.110.0060.00617.54
8.1.100.0040.00717.48
8.1.90.0060.00617.68
8.1.80.0000.01017.70
8.1.70.0000.01017.63
8.1.60.0060.00617.81
8.1.50.0040.00817.70
8.1.40.0040.00717.74
8.1.30.0070.00417.79
8.1.20.0040.00717.91
8.1.10.0040.00717.60
8.1.00.0040.00817.69
8.0.300.0000.01218.77
8.0.290.0060.00617.15
8.0.280.0000.01018.52
8.0.270.0000.01017.34
8.0.260.0000.01017.18
8.0.250.0040.00717.19
8.0.240.0030.00717.28
8.0.230.0070.00317.32
8.0.220.0030.00717.22
8.0.210.0000.01017.26
8.0.200.0040.00817.23
8.0.190.0030.00717.34
8.0.180.0000.01117.14
8.0.170.0040.00717.26
8.0.160.0040.00717.08
8.0.150.0040.00717.20
8.0.140.0000.01117.18
8.0.130.0030.00613.66
8.0.120.0070.00417.12
8.0.110.0000.01117.22
8.0.100.0070.00717.10
8.0.90.0040.00717.09
8.0.80.0030.02417.19
8.0.70.0040.00817.28
8.0.60.0030.00917.21
8.0.50.0000.01117.19
8.0.30.0100.01517.20
8.0.20.0110.01317.46
8.0.10.0030.00917.17
8.0.00.0120.01316.95
7.4.330.0050.00515.20
7.4.320.0060.00316.93
7.4.300.0030.00716.93
7.4.290.0000.01016.88
7.4.280.0070.00316.93
7.4.270.0000.01116.82
7.4.260.0080.00316.70
7.4.250.0030.00816.79
7.4.240.0010.01016.74
7.4.230.0000.01016.93
7.4.220.0070.01816.91
7.4.210.0100.01716.81
7.4.200.0000.01016.84
7.4.190.0060.00616.79
7.4.160.0120.01216.52
7.4.150.0070.01717.40
7.4.140.0090.01617.86
7.4.130.0060.01816.84
7.4.120.0090.02016.78
7.4.110.0070.01716.83
7.4.100.0130.01616.74
7.4.90.0060.02716.82
7.4.80.0120.01519.39
7.4.70.0120.01516.70
7.4.60.0150.00916.70
7.4.50.0000.00716.45
7.4.40.0100.01022.77
7.4.30.0130.01016.77
7.4.00.0060.01315.20
7.3.330.0000.00813.39
7.3.320.0040.00413.14
7.3.310.0000.01116.29
7.3.300.0000.01016.47
7.3.290.0120.00916.38
7.3.280.0070.01716.45
7.3.270.0070.01617.40
7.3.260.0120.01816.56
7.3.250.0130.01016.67
7.3.240.0160.00616.46
7.3.230.0060.02016.52
7.3.210.0150.01616.61
7.3.200.0150.01519.39
7.3.190.0030.01916.46
7.3.180.0060.02516.74
7.3.170.0060.01616.77
7.3.160.0080.01516.33
7.3.120.0030.01714.72
7.3.10.0250.00616.58
7.3.00.0170.01416.68
7.2.330.0060.01916.89
7.2.320.0070.01716.79
7.2.310.0070.02416.98
7.2.300.0100.01316.84
7.2.290.0090.01317.00
7.2.130.0180.01416.88
7.2.120.0190.01216.74
7.2.110.0180.01016.81
7.2.100.0130.01017.05
7.2.90.0190.01416.52
7.2.80.0090.01916.79
7.2.70.0130.01616.72
7.2.60.0130.01316.78
7.2.50.0090.01416.98
7.2.40.0110.01317.05
7.2.30.0100.01916.96
7.2.20.0080.01916.85
7.2.10.0100.01317.02
7.2.00.0060.01316.82
7.1.250.0100.01115.85
7.1.240.0070.02215.95
7.1.230.0100.01715.84
7.1.220.0070.02315.97
7.1.210.0150.00715.61
7.1.200.0130.01615.73
7.1.190.0090.01915.63
7.1.180.0100.01616.00
7.1.170.0130.01615.94
7.1.160.0030.02116.04
7.1.150.0080.02015.57
7.1.140.0070.02015.88
7.1.130.0040.02116.06
7.1.120.0140.00615.89
7.1.110.0130.01315.73
7.1.100.0080.01415.85
7.1.90.0080.01215.93
7.1.80.0030.01615.91
7.1.70.0070.00816.51
7.1.60.0050.02417.98
7.1.50.0050.01616.60
7.1.40.0030.01015.97
7.1.30.0040.01915.67
7.1.20.0040.01915.80
7.1.10.0120.01215.81
7.1.00.0070.04919.08
7.0.330.0150.01115.64
7.0.320.0080.02015.84
7.0.310.0050.02015.09
7.0.300.0090.01515.08
7.0.290.0070.01715.47
7.0.280.0120.01215.33
7.0.270.0200.01215.45
7.0.260.0140.00715.49
7.0.250.0110.01115.50
7.0.240.0040.01915.70
7.0.230.0030.02015.22
7.0.220.0040.01815.51
7.0.210.0030.01515.92
7.0.200.0070.01016.15
7.0.190.0190.00815.45
7.0.180.0090.00915.64
7.0.170.0070.01415.30
7.0.160.0100.01715.56
7.0.150.0080.01715.50
7.0.140.0050.04718.97
7.0.130.0040.02315.41
7.0.120.0070.02115.35
7.0.110.0090.02015.34
7.0.100.0140.01415.41
7.0.90.0130.01215.36
7.0.80.0060.01315.52
7.0.70.0120.00615.76
7.0.60.0050.03317.68
7.0.50.0110.04616.80
7.0.40.0010.03217.11
7.0.30.0170.04717.00
7.0.20.0170.03516.91
7.0.10.0130.03016.99
7.0.00.0100.04116.90
5.6.380.0120.03514.15
5.6.370.0100.04713.70
5.6.360.0160.03813.96
5.6.350.0120.04214.38
5.6.340.0160.04114.42
5.6.330.0100.04414.48
5.6.320.0070.04314.49
5.6.310.0120.03914.22
5.6.300.0080.04214.06
5.6.290.0140.03813.93
5.6.280.0070.06617.44
5.6.270.0120.03914.24
5.6.260.0150.04214.13
5.6.250.0040.05013.98
5.6.240.0070.04214.29
5.6.230.0030.03814.57
5.6.220.0070.04014.54
5.6.210.0070.06417.41
5.6.200.0020.04916.24
5.6.190.0080.07017.50
5.6.180.2160.04217.32
5.6.170.0220.05517.19
5.6.160.0060.07517.40
5.6.150.0080.04816.11
5.6.140.0070.05216.20
5.6.130.0030.04816.12
5.6.120.0060.05417.75
5.6.110.0120.06317.55
5.6.100.0030.05717.66
5.6.90.0030.05317.65
5.6.80.0070.10617.24
5.6.70.2400.07217.29
5.6.60.0030.06914.43
5.6.50.0030.06714.22
5.6.40.0030.06214.30
5.6.30.0000.06814.27
5.6.20.0070.06014.41
5.6.10.0030.06614.38
5.6.00.0030.06714.29
5.5.380.0000.04111.18
5.5.370.0000.04611.18
5.5.360.0070.03611.18
5.5.350.0080.06415.74
5.5.340.0050.04414.61
5.5.330.0060.04615.78
5.5.320.0070.04915.74
5.5.310.0120.07515.81
5.5.300.0000.06514.58
5.5.290.0050.04614.55
5.5.280.0060.04416.02
5.5.270.0070.07015.95
5.5.260.0100.05615.95
5.5.250.0070.06015.88
5.5.240.0050.10915.71
5.5.230.0000.06511.26
5.5.220.0000.06611.18
5.5.210.0030.06611.18
5.5.200.0000.06811.18
5.5.190.0070.05611.18
5.5.180.0070.06911.18
5.5.170.0030.06611.18
5.5.160.0030.06411.18
5.5.150.0070.06311.18
5.5.140.0070.05911.18
5.5.130.0070.06111.18
5.5.120.0070.06111.18
5.5.110.0030.06911.18
5.5.100.0070.06311.18
5.5.90.0030.06311.18
5.5.80.0030.05911.18
5.5.70.0030.05911.18
5.5.60.0000.06411.18
5.5.50.0000.05911.18
5.5.40.0030.05911.18
5.5.30.0030.06711.18
5.5.20.0070.06011.18
5.5.10.0080.05511.18
5.5.00.0000.07811.18
5.4.450.0130.06115.22
5.4.440.0300.06215.32
5.4.430.0330.06115.16
5.4.420.0450.06615.25
5.4.410.0320.05215.29
5.4.400.0700.03114.99
5.4.390.0900.02814.94
5.4.380.0120.08714.87
5.4.370.0220.08314.92
5.4.360.0200.08014.89
5.4.350.0180.08714.83
5.4.340.0220.08614.85
5.4.330.0000.05911.18
5.4.320.0060.07011.83
5.4.310.0050.06811.83
5.4.300.0070.07111.85
5.4.290.0080.06811.83
5.4.280.0080.08011.78
5.4.270.0050.07111.78
5.4.260.0080.11215.03
5.4.250.0070.08815.03
5.4.240.0070.08515.03
5.4.230.0120.09014.94
5.4.220.0050.08915.00
5.4.210.0000.09314.99
5.4.200.0120.08014.93
5.4.190.0070.08415.01
5.4.180.0130.10515.03
5.4.170.0050.09914.94
5.4.160.0070.08115.09
5.4.150.0030.08514.93
5.4.140.0020.08913.70
5.4.130.0080.07113.79
5.4.120.0020.06013.70
5.4.110.0120.04713.85
5.4.100.0100.05013.81
5.4.90.0080.04813.76
5.4.80.0050.06513.77
5.4.70.0100.05813.73
5.4.60.0100.05213.82
5.4.50.0050.05913.72
5.4.40.0020.06313.82
5.4.30.0070.05713.83
5.4.20.0130.06113.78
5.4.10.0070.05613.71
5.4.00.0100.05413.51
5.3.290.0100.07311.99
5.3.280.0130.08312.97
5.3.270.0030.12412.91
5.3.260.0100.12112.90
5.3.250.0040.12212.84
5.3.240.0120.11912.86
5.3.230.0110.05412.91
5.3.220.0070.05712.94
5.3.210.0120.04712.97
5.3.200.0080.05212.89
5.3.190.0030.06012.81
5.3.180.0120.04612.91
5.3.170.0060.07712.90
5.3.160.0100.05812.83
5.3.150.0130.05012.82
5.3.140.0120.06612.83
5.3.130.0070.05512.88
5.3.120.0030.05612.96
5.3.110.0100.06912.84
5.3.100.0130.05112.56
5.3.90.0080.05512.46
5.3.80.0050.06012.59
5.3.70.0080.05312.63
5.3.60.0080.03112.67
5.3.50.0120.02912.58
5.3.40.0090.03212.55
5.3.30.0050.03912.48
5.3.20.0050.03612.45
5.3.10.0060.03412.27
5.3.00.0040.03812.33
5.2.170.0110.02311.25
5.2.160.0070.03511.13
5.2.150.0010.03111.25
5.2.140.0090.03911.13
5.2.130.0070.02711.11
5.2.120.0050.03311.15
5.2.110.0050.03311.11
5.2.100.0070.03811.18
5.2.90.0050.03011.16
5.2.80.0090.03311.10
5.2.70.0040.04311.15
5.2.60.0030.04211.13
5.2.50.0050.05711.11
5.2.40.0030.04211.05
5.2.30.0060.04411.05
5.2.20.0090.03711.09
5.2.10.0080.03810.99
5.2.00.0070.04610.95
5.1.60.0030.08710.63
5.1.50.0140.09610.56
5.1.40.0030.07610.71
5.1.30.0070.06910.72
5.1.20.0030.08910.82
5.1.10.0060.08010.66
5.1.00.0050.08110.59
5.0.50.0020.0789.84
5.0.40.0050.0509.85
5.0.30.0020.0679.70
5.0.20.0080.0459.67
5.0.10.0070.0429.73
5.0.00.0020.0589.71
4.4.90.0030.0718.56
4.4.80.0030.0618.48
4.4.70.0000.0678.47
4.4.60.0050.0618.49
4.4.50.0030.0648.50
4.4.40.0050.0738.50
4.4.30.0050.0638.48
4.4.20.0030.0898.53
4.4.10.0030.0738.54
4.4.00.0030.1018.51
4.3.110.0030.0488.45
4.3.100.0030.0708.79
4.3.90.0020.0478.79
4.3.80.0030.0728.79
4.3.70.0020.0508.79
4.3.60.0020.0488.79
4.3.50.0020.0508.79
4.3.40.0000.0538.79
4.3.30.0000.0648.79
4.3.20.0010.0118.79
4.3.10.0000.0158.79
4.3.00.0090.0129.14

preferences:
51.3 ms | 401 KiB | 5 Q