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.60.0130.01016.88
8.3.50.0050.01822.21
8.3.40.0080.01219.05
8.3.30.0040.01519.04
8.3.20.0030.00720.20
8.3.10.0000.01023.65
8.3.00.0030.00719.79
8.2.180.0130.00716.75
8.2.170.0090.00922.96
8.2.160.0120.00620.70
8.2.150.0060.00624.18
8.2.140.0040.00824.66
8.2.130.0100.00726.16
8.2.120.0030.00722.10
8.2.110.0040.00822.43
8.2.100.0120.00318.16
8.2.90.0090.00619.09
8.2.80.0000.01118.03
8.2.70.0060.00617.88
8.2.60.0030.00817.93
8.2.50.0030.00918.07
8.2.40.0040.00718.14
8.2.30.0060.00618.13
8.2.20.0040.00717.98
8.2.10.0000.01119.89
8.2.00.0060.00618.04
8.1.280.0120.01825.92
8.1.270.0000.01024.09
8.1.260.0080.00326.35
8.1.250.0030.00728.09
8.1.240.0080.00323.91
8.1.230.0040.01219.07
8.1.220.0040.00817.74
8.1.210.0000.01118.77
8.1.200.0040.01417.60
8.1.190.0040.00717.75
8.1.180.0000.01118.10
8.1.170.0000.01218.79
8.1.160.0080.00421.96
8.1.150.0000.01118.80
8.1.140.0060.00617.63
8.1.130.0030.00718.04
8.1.120.0110.00017.67
8.1.110.0000.01117.54
8.1.100.0030.00817.49
8.1.90.0000.01217.69
8.1.80.0030.00817.61
8.1.70.0040.00717.64
8.1.60.0040.00817.62
8.1.50.0090.00317.58
8.1.40.0060.00617.73
8.1.30.0040.00817.80
8.1.20.0060.00617.76
8.1.10.0000.01117.68
8.1.00.0040.00717.61
8.0.300.0050.00518.77
8.0.290.0030.00917.43
8.0.280.0080.00418.48
8.0.270.0000.01017.40
8.0.260.0060.00617.09
8.0.250.0040.00717.16
8.0.240.0000.01017.24
8.0.230.0030.00817.24
8.0.220.0000.01117.26
8.0.210.0070.00417.25
8.0.200.0030.00717.29
8.0.190.0040.00717.25
8.0.180.0030.00917.25
8.0.170.0080.00417.25
8.0.160.0080.00317.20
8.0.150.0030.00817.03
8.0.140.0070.00417.21
8.0.130.0050.00513.63
8.0.120.0030.00917.20
8.0.110.0070.00417.13
8.0.100.0040.00717.23
8.0.90.0030.00717.17
8.0.80.0090.01317.10
8.0.70.0000.01117.09
8.0.60.0030.01217.20
8.0.50.0060.00617.09
8.0.30.0100.01617.36
8.0.20.0130.01217.45
8.0.10.0000.01117.18
8.0.00.0150.01417.01
7.4.330.0000.00815.16
7.4.320.0040.00716.97
7.4.300.0040.00916.75
7.4.290.0070.00316.85
7.4.280.0030.00716.92
7.4.270.0000.01016.90
7.4.260.0000.01016.80
7.4.250.0000.01116.88
7.4.240.0040.00716.79
7.4.230.0030.00716.81
7.4.220.0130.01316.75
7.4.210.0120.01016.74
7.4.200.0030.00816.60
7.4.190.0060.00616.90
7.4.160.0130.01016.86
7.4.150.0030.02117.40
7.4.140.0100.01917.86
7.4.130.0060.02016.71
7.4.120.0080.01516.84
7.4.110.0130.01016.86
7.4.100.0130.01316.88
7.4.90.0060.01816.74
7.4.80.0130.01716.85
7.4.70.0100.01316.76
7.4.60.0070.02316.67
7.4.50.0070.00716.56
7.4.40.0030.01622.77
7.4.30.0120.01016.66
7.4.10.0090.01515.14
7.4.00.0080.01515.22
7.3.330.0000.00913.29
7.3.320.0030.00613.25
7.3.310.0030.00716.52
7.3.300.0030.00716.43
7.3.290.0040.02516.44
7.3.280.0070.01616.48
7.3.270.0060.01717.40
7.3.260.0100.02416.68
7.3.250.0120.01716.60
7.3.240.0160.01316.59
7.3.230.0100.01316.55
7.3.210.0130.01016.60
7.3.200.0030.02819.39
7.3.190.0040.02116.62
7.3.180.0090.01616.41
7.3.170.0110.01216.44
7.3.160.0070.02616.74
7.3.130.0060.01914.94
7.3.120.0080.01215.02
7.3.110.0100.01615.25
7.3.100.0120.00614.99
7.3.90.0100.01014.87
7.3.80.0100.00615.13
7.3.70.0070.01015.00
7.3.60.0060.01514.77
7.3.50.0000.01814.89
7.3.40.0060.01114.79
7.3.30.0040.01514.92
7.3.20.0040.00816.78
7.3.10.0000.02116.46
7.3.00.0070.01016.50
7.2.330.0120.01216.88
7.2.320.0000.02316.88
7.2.310.0110.01216.98
7.2.300.0100.01416.90
7.2.290.0110.01916.69
7.2.260.0070.01814.95
7.2.250.0070.01415.02
7.2.240.0100.01014.91
7.2.230.0070.01315.39
7.2.220.0000.02315.24
7.2.210.0030.01715.03
7.2.200.0070.00715.29
7.2.190.0000.01915.44
7.2.180.0000.01815.29
7.2.170.0040.01215.41
7.2.160.0030.01115.34
7.2.150.0070.01117.28
7.2.140.0070.01417.19
7.2.130.0040.01517.24
7.2.120.0090.00916.97
7.2.110.0170.00916.79
7.2.100.0030.01417.02
7.2.90.0030.01417.16
7.2.80.0070.01417.24
7.2.70.0030.01017.21
7.2.60.0030.02017.03
7.2.50.0030.01017.25
7.2.40.0060.01216.84
7.2.30.0060.00917.04
7.2.20.0030.01217.13
7.2.10.0060.01217.20
7.2.00.0070.01018.28
7.1.330.0030.01216.14
7.1.320.0030.01715.80
7.1.310.0070.01015.86
7.1.300.0100.01015.80
7.1.290.0060.01016.02
7.1.280.0090.01215.86
7.1.270.0030.01515.95
7.1.260.0000.01915.84
7.1.250.0100.00615.82
7.1.240.0060.01215.85
7.1.230.0000.01715.84
7.1.220.0070.01415.88
7.1.210.0030.01315.72
7.1.200.0090.01015.82
7.1.190.0090.00615.84
7.1.180.0120.00615.83
7.1.170.0070.01416.01
7.1.160.0070.01115.93
7.1.150.0090.00915.82
7.1.140.0080.01115.76
7.1.130.0000.01516.00
7.1.120.0070.00715.72
7.1.110.0070.01116.00
7.1.100.0090.01217.10
7.1.90.0030.01415.88
7.1.80.0000.01615.96
7.1.70.0050.00916.74
7.1.60.0030.02417.69
7.1.50.0020.02016.72
7.1.40.0100.01315.90
7.1.30.0040.01116.08
7.1.20.0060.01315.97
7.1.10.0110.01415.81
7.1.00.0040.04519.19
7.0.330.0000.01615.64
7.0.320.0030.01315.68
7.0.310.0000.01415.26
7.0.300.0070.01115.82
7.0.290.0040.00815.70
7.0.280.0000.01615.71
7.0.270.0040.01415.59
7.0.260.0060.01515.61
7.0.250.0030.01615.60
7.0.240.0100.01415.74
7.0.230.0060.00915.65
7.0.220.0000.01515.89
7.0.210.0060.01315.61
7.0.200.0070.00816.12
7.0.190.0100.01315.36
7.0.180.0030.01215.61
7.0.170.0070.01115.87
7.0.160.0110.00715.58
7.0.150.0030.01615.75
7.0.140.0070.04518.96
7.0.130.0040.01515.65
7.0.120.0070.01315.68
7.0.110.0130.00615.66
7.0.100.0030.01315.75
7.0.90.0070.01115.84
7.0.80.0090.00915.73
7.0.70.0090.00615.75
7.0.60.0060.05017.71
7.0.50.0060.03416.71
7.0.40.0060.05316.89
7.0.30.0150.03116.94
7.0.20.0200.02817.02
7.0.10.0200.04216.88
7.0.00.0130.04717.00
5.6.400.0030.03414.49
5.6.390.0070.03314.08
5.6.380.0060.03214.19
5.6.370.0030.03714.07
5.6.360.0070.03614.46
5.6.350.0070.03314.19
5.6.340.0000.04214.80
5.6.330.0060.03514.34
5.6.320.0070.04114.66
5.6.310.0100.03014.32
5.6.300.0070.03714.43
5.6.290.0030.04414.32
5.6.280.0030.06917.65
5.6.270.0000.04314.42
5.6.260.0130.03214.32
5.6.250.0070.03714.46
5.6.240.0000.03514.31
5.6.230.0030.03714.32
5.6.220.0070.03114.23
5.6.210.0080.06417.51
5.6.200.0130.06316.21
5.6.190.0050.07017.42
5.6.180.0280.06417.45
5.6.170.0120.06817.48
5.6.160.0020.07717.34
5.6.150.0050.06916.14
5.6.140.0070.06816.27
5.6.130.0100.06716.29
5.6.120.0030.04617.60
5.6.110.0050.04517.53
5.6.100.0080.06417.59
5.6.90.0000.04917.62
5.6.80.0070.08717.30
5.6.70.0170.10217.28
5.6.60.0030.09114.30
5.6.50.0030.06614.47
5.6.40.0030.06914.17
5.6.30.0070.06914.04
5.6.20.0030.09214.09
5.6.10.0070.06414.49
5.6.00.0070.06214.33
5.5.380.0000.04214.33
5.5.370.0070.03514.43
5.5.360.0060.03214.16
5.5.350.0050.07017.21
5.5.340.0050.06415.94
5.5.330.0070.04417.37
5.5.320.0030.06817.32
5.5.310.0120.04417.29
5.5.300.0020.04716.12
5.5.290.0080.05216.22
5.5.280.0050.06517.54
5.5.270.0120.06517.50
5.5.260.0120.06617.47
5.5.250.0100.04317.47
5.5.240.0100.09617.35
5.5.230.0070.09114.27
5.5.220.0030.09414.28
5.5.210.0030.06614.24
5.5.200.0000.10114.36
5.5.190.0030.09014.11
5.5.180.0000.08714.09
5.5.170.0160.05213.98
5.5.160.0070.06314.18
5.5.150.0030.06514.02
5.5.140.0030.06414.29
5.5.130.0000.07414.09
5.5.120.0100.05814.07
5.5.110.0000.06914.14
5.5.100.0030.06514.46
5.5.90.0000.07114.31
5.5.80.0030.06114.23
5.5.70.0000.05514.09
5.5.60.0000.06814.30
5.5.50.0030.05214.45
5.5.40.0030.05614.19
5.5.30.0100.05114.18
5.5.20.0000.05814.19
5.5.10.0000.06114.11
5.5.00.0000.05414.39
5.4.450.0380.04915.44
5.4.440.0530.06015.22
5.4.430.0320.06115.41
5.4.420.0370.05715.31
5.4.410.0350.05715.14
5.4.400.0100.09315.02
5.4.390.0370.09115.04
5.4.380.0170.10614.71
5.4.370.0180.09614.72
5.4.360.0120.09714.87
5.4.350.0180.09214.78
5.4.340.0150.11014.69
5.4.330.0060.05411.05
5.4.320.0040.07611.76
5.4.310.0040.07211.76
5.4.300.0070.07411.85
5.4.290.0060.06711.73
5.4.280.0020.06811.67
5.4.270.0080.06911.56
5.4.260.0050.07011.54
5.4.250.0050.07111.46
5.4.240.0050.06911.46
5.4.230.0040.06611.62
5.4.220.0040.07111.80
5.4.210.0050.07911.61
5.4.200.0040.07411.75
5.4.190.0070.06711.77
5.4.180.0040.07311.52
5.4.170.0080.07811.65
5.4.160.0030.08411.54
5.4.150.0050.08511.58
5.4.140.0020.08911.53
5.4.130.0050.04911.54
5.4.120.0040.04611.53
5.4.110.0070.04011.53
5.4.100.0040.04811.57
5.4.90.0060.04711.50
5.4.80.0060.04711.54
5.4.70.0050.05611.50
5.4.60.0070.05011.49
5.4.50.0050.06011.49
5.4.40.0040.05011.37
5.4.30.0050.04611.51
5.4.20.0060.04511.43
5.4.10.0060.04611.51
5.4.00.0060.04211.23
5.3.290.0050.07111.72
5.3.280.0090.06511.59
5.3.270.0060.10211.71
5.3.260.0020.10411.66
5.3.250.0040.10611.71
5.3.240.0060.10711.49
5.3.230.0070.04311.61
5.3.220.0060.04011.60
5.3.210.0040.04311.54
5.3.200.0020.04611.54
5.3.190.0020.04611.59
5.3.180.0060.04211.59
5.3.170.0050.04511.66
5.3.160.0050.04311.60
5.3.150.0040.04711.52
5.3.140.0050.04311.61
5.3.130.0070.04411.47
5.3.120.0040.04611.53
5.3.110.0050.04411.47
5.3.100.0060.04411.26
5.3.90.0050.04011.21
5.3.80.0050.04611.14
5.3.70.0080.04711.20
5.3.60.0070.02911.23
5.3.50.0080.02611.13
5.3.40.0050.02911.03
5.3.30.0040.02811.15
5.3.20.0040.02711.03
5.3.10.0060.02510.93
5.3.00.0040.02910.99
5.2.170.0070.0359.17
5.2.160.0050.0389.17
5.2.150.0050.0379.18
5.2.140.0040.0369.17
5.2.130.0010.0389.13
5.2.120.0040.0349.13
5.2.110.0070.0379.14
5.2.100.0080.0309.13
5.2.90.0040.0349.13
5.2.80.0050.0349.13
5.2.70.0050.0389.13
5.2.60.0040.0449.09
5.2.50.0030.0469.05
5.2.40.0060.0419.05
5.2.30.0030.0509.02
5.2.20.0030.0439.01
5.2.10.0060.0428.91
5.2.00.0050.0428.77
5.1.60.0070.0668.07
5.1.50.0060.0658.07
5.1.40.0040.0678.06
5.1.30.0090.0608.41
5.1.20.0050.0788.43
5.1.10.0060.0848.16
5.1.00.0060.0768.16
5.0.50.0070.0646.64
5.0.40.0040.0466.49
5.0.30.0020.0576.30
5.0.20.0020.0456.28
5.0.10.0010.0466.25
5.0.00.0040.0546.25
4.4.90.0010.0574.78
4.4.80.0030.0574.76
4.4.70.0050.0564.75
4.4.60.0050.0554.75
4.4.50.0030.0544.77
4.4.40.0020.0674.71
4.4.30.0010.0584.76
4.4.20.0010.0684.84
4.4.10.0050.0644.85
4.4.00.0060.0834.76
4.3.110.0030.0454.67
4.3.100.0040.0434.66
4.3.90.0020.0404.64
4.3.80.0040.0524.59
4.3.70.0030.0424.63
4.3.60.0030.0404.62
4.3.50.0020.0444.62
4.3.40.0020.0494.54
4.3.30.0030.0443.32
4.3.20.0010.0173.25
4.3.10.0030.0153.22
4.3.00.0030.01713.14

preferences:
68.6 ms | 401 KiB | 5 Q