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.40.0180.00618.96
8.3.30.0060.01019.00
8.3.20.0060.00320.21
8.3.10.0060.00321.83
8.3.00.0030.00622.52
8.2.170.0030.01622.96
8.2.160.0070.01019.33
8.2.150.0030.00624.18
8.2.140.0030.00624.66
8.2.130.0030.00526.16
8.2.120.0050.00519.86
8.2.110.0070.00322.32
8.2.100.0040.01119.88
8.2.90.0030.00619.34
8.2.80.0050.00517.97
8.2.70.0000.00917.75
8.2.60.0030.00618.05
8.2.50.0070.00318.07
8.2.40.0040.00418.17
8.2.30.0050.00518.31
8.2.20.0040.00417.91
8.2.10.0000.00918.07
8.2.00.0060.00317.89
8.1.270.0080.00022.02
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0070.00323.84
8.1.230.0060.00619.09
8.1.220.0030.00717.90
8.1.210.0040.00418.77
8.1.200.0080.00317.61
8.1.190.0060.00317.66
8.1.180.0040.00418.81
8.1.170.0070.00318.76
8.1.160.0030.00622.28
8.1.150.0100.00018.79
8.1.140.0060.00617.78
8.1.130.0000.00817.98
8.1.120.0030.00617.61
8.1.110.0000.01017.66
8.1.100.0040.00417.68
8.1.90.0040.00417.58
8.1.80.0030.00617.68
8.1.70.0000.00817.66
8.1.60.0000.00917.82
8.1.50.0060.00317.68
8.1.40.0090.00017.68
8.1.30.0030.00617.76
8.1.20.0000.00917.77
8.1.10.0040.00417.64
8.1.00.0030.00617.55
8.0.300.0060.00318.77
8.0.290.0060.00317.30
8.0.280.0060.00318.61
8.0.270.0030.00617.41
8.0.260.0030.00617.06
8.0.250.0050.00317.29
8.0.240.0060.00317.18
8.0.230.0000.00817.18
8.0.220.0000.00817.27
8.0.210.0000.00817.09
8.0.200.0030.00617.29
8.0.190.0040.00417.25
8.0.180.0030.00617.14
8.0.170.0040.00417.21
8.0.160.0040.00417.09
8.0.150.0030.00617.30
8.0.140.0040.00417.08
8.0.130.0070.00013.62
8.0.120.0060.00317.12
8.0.110.0080.00017.21
8.0.100.0000.01017.14
8.0.90.0000.00817.34
8.0.80.0090.00917.23
8.0.70.0030.00617.35
8.0.60.0050.00517.12
8.0.50.0030.00617.18
8.0.30.0120.00917.23
8.0.20.0090.01317.47
8.0.10.0060.00317.23
8.0.00.0070.01317.12
7.4.330.0000.00615.00
7.4.320.0000.00816.73
7.4.300.0040.00416.75
7.4.290.0000.00916.84
7.4.280.0030.00616.91
7.4.270.0030.00616.95
7.4.260.0060.00316.79
7.4.250.0000.01016.80
7.4.240.0050.00416.89
7.4.230.0000.00816.89
7.4.220.0110.00916.90
7.4.210.0060.01316.90
7.4.200.0040.00416.64
7.4.190.0030.00616.91
7.4.160.0090.00916.73
7.4.150.0120.00817.40
7.4.140.0090.01117.86
7.4.130.0210.02216.79
7.4.120.0130.00716.84
7.4.110.0110.00816.67
7.4.100.0170.01016.79
7.4.90.0180.01916.80
7.4.80.0110.00819.39
7.4.70.0210.00616.62
7.4.60.0130.00616.88
7.4.50.0030.00316.81
7.4.40.0060.00922.77
7.4.30.0120.01216.79
7.4.00.0000.01615.14
7.3.330.0000.00613.37
7.3.320.0050.00213.23
7.3.310.0030.00516.44
7.3.300.0000.00816.58
7.3.290.0060.01216.52
7.3.280.0040.01516.54
7.3.270.0070.01217.40
7.3.260.0140.00716.49
7.3.250.0070.01216.55
7.3.240.0140.00616.43
7.3.230.0030.01516.61
7.3.210.0100.01016.59
7.3.200.0110.00819.39
7.3.190.0130.01616.52
7.3.180.0150.00316.60
7.3.170.0070.01716.60
7.3.160.0030.01516.45
7.3.120.0090.00914.72
7.2.330.0090.01316.94
7.2.320.0090.01316.79
7.2.310.0150.01116.73
7.2.300.0060.01416.97
7.2.290.0060.01316.90
7.2.00.0060.00919.53
7.1.100.0040.01118.40
7.1.70.0030.00617.29
7.1.60.0110.01819.82
7.1.50.0160.01317.21
7.1.00.0130.06722.44
7.0.200.0050.00517.02
7.0.140.0030.07722.19
7.0.60.0100.09020.02
7.0.50.0130.08017.88
7.0.40.0070.08020.31
7.0.30.0400.04020.11
7.0.20.0130.06020.04
7.0.10.0100.09020.40
7.0.00.0070.05320.16
5.6.280.0000.08020.91
5.6.210.0100.09020.47
5.6.200.0070.06318.16
5.6.190.0170.03720.39
5.6.180.0270.05020.61
5.6.170.0230.09320.36
5.6.160.0100.05720.71
5.6.150.0130.08018.09
5.6.140.0030.04718.22
5.6.130.0000.09018.18
5.6.120.0030.05721.03
5.6.110.0070.06720.96
5.6.100.0030.05020.98
5.6.90.0130.08721.10
5.6.80.0000.04720.38
5.6.70.3330.04320.34
5.5.350.0130.08320.42
5.5.340.0030.04717.98
5.5.330.0100.04020.48
5.5.320.0270.06320.27
5.5.310.0270.08020.29
5.5.300.0100.04018.00
5.5.290.0100.08317.94
5.5.280.0130.07720.80
5.5.270.0130.04720.97
5.5.260.0130.08720.86
5.5.250.0070.08320.55
5.5.240.0070.07320.35
5.4.450.0500.06019.48
5.4.440.0500.05719.52
5.4.430.0430.06319.63
5.4.420.0700.06019.63
5.4.410.0200.05318.97
5.4.400.1030.00018.77
5.4.390.1000.00018.58
5.4.380.0430.06318.66
5.4.370.0970.05318.65
5.4.360.0770.05318.52
5.4.350.0930.06018.71
5.4.340.0930.06018.56
5.4.320.0050.04112.47
5.4.310.0120.04012.46
5.4.300.0070.04712.46
5.4.290.0040.04912.47
5.4.280.0130.03712.36
5.4.270.0060.04912.36
5.4.260.0030.06318.79
5.4.250.0130.05318.98
5.4.240.0130.05318.91
5.4.230.0030.06318.63
5.4.220.0130.05718.85
5.4.210.0130.05018.87
5.4.200.0070.06018.71
5.4.190.0030.06318.74
5.4.180.0070.05718.86
5.4.170.0030.06019.00
5.4.160.0170.05019.00
5.4.150.0100.06318.86
5.4.140.0070.05716.30
5.4.130.0070.05016.40
5.4.120.0100.08016.31
5.4.110.0070.05316.18
5.4.100.0130.05016.39
5.4.90.0030.05716.33
5.4.80.0100.05316.27
5.4.70.0130.06016.31
5.4.60.0100.05016.41
5.4.50.0030.05716.39
5.4.40.0100.05016.45
5.4.30.0030.05316.45
5.4.20.0130.06716.19
5.4.10.0030.05716.30
5.4.00.0030.05715.75
5.3.290.0070.04812.80
5.3.280.0030.06014.69
5.3.270.0130.05014.63
5.3.260.0230.04014.46
5.3.250.0100.06014.62
5.3.240.0070.05714.61
5.3.230.0070.05314.64
5.3.220.0070.07314.44
5.3.210.0000.06014.48
5.3.200.0030.05714.44
5.3.190.0130.06314.61
5.3.180.0030.05714.57
5.3.170.0070.05314.26
5.3.160.0000.06014.58
5.3.150.0100.05314.66
5.3.140.0030.05714.59
5.3.130.0030.05714.64
5.3.120.0070.07314.43
5.3.110.0130.06014.32
5.3.100.0170.04314.13
5.3.90.0070.06713.91
5.3.80.0070.05313.88
5.3.70.0100.05013.88
5.3.60.0070.06314.01
5.3.50.0130.05013.82
5.3.40.0070.07313.89
5.3.30.0000.06313.79
5.3.20.0130.04313.79
5.3.10.0030.05713.66
5.3.00.0200.04313.64
5.2.170.0000.05011.05
5.2.160.0030.04311.07
5.2.150.0170.04011.16
5.2.140.0070.04310.91
5.2.130.0000.04711.00
5.2.120.0070.04011.20
5.2.110.0000.05011.10
5.2.100.0170.03311.25
5.2.90.0070.04011.25
5.2.80.0030.06311.02
5.2.70.0130.03710.85
5.2.60.0100.05011.05
5.2.50.0100.05010.93
5.2.40.0000.05710.94
5.2.30.0030.08710.91
5.2.20.0000.05710.80
5.2.10.0100.05011.08
5.2.00.0030.05310.89
5.1.60.0030.05010.23
5.1.50.0100.0479.88
5.1.40.0030.05010.07
5.1.30.0000.05310.50
5.1.20.0100.05710.41
5.1.10.0070.05710.26
5.1.00.0070.0609.92
5.0.50.0100.0538.57
5.0.40.0000.0308.37
5.0.30.0000.0438.28
5.0.20.0000.0278.34
5.0.10.0070.0238.11
5.0.00.0070.0378.39
4.4.90.0000.0375.79
4.4.80.0000.0605.70
4.4.70.0030.0435.77
4.4.60.0000.0405.77
4.4.50.0030.0375.80
4.4.40.0000.0505.76
4.4.30.0000.0475.80
4.4.20.0030.0475.84
4.4.10.0030.0475.84
4.4.00.0070.0575.81
4.3.110.0070.0175.70
4.3.100.0000.0235.67
4.3.90.0070.0135.68
4.3.80.0000.0335.68
4.3.70.0000.0235.75
4.3.60.0030.0175.60
4.3.50.0000.0235.66
4.3.40.0070.0435.64
4.3.30.0070.0235.60
4.3.20.0000.0275.60
4.3.10.0000.0305.58
4.3.00.0070.0236.93

preferences:
49.1 ms | 400 KiB | 5 Q