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.60.0100.01318.77
8.3.50.0170.00222.30
8.3.40.0060.01919.09
8.3.30.0000.01619.13
8.3.20.0030.00620.34
8.3.10.0030.00622.10
8.3.00.0060.00322.34
8.2.180.0100.00616.38
8.2.170.0130.00722.96
8.2.160.0130.00619.17
8.2.150.0000.01024.18
8.2.140.0000.00924.66
8.2.130.0030.00526.16
8.2.120.0090.00019.61
8.2.110.0040.00722.25
8.2.100.0030.01019.82
8.2.90.0090.00019.42
8.2.80.0060.00318.04
8.2.70.0000.00918.00
8.2.60.0070.00318.16
8.2.50.0060.00318.07
8.2.40.0030.00620.14
8.2.30.0040.00418.15
8.2.20.0030.00617.87
8.2.10.0060.00318.06
8.2.00.0050.00517.96
8.1.280.0110.01125.92
8.1.270.0090.00022.08
8.1.260.0000.00826.35
8.1.250.0000.01028.09
8.1.240.0030.00623.92
8.1.230.0040.00919.27
8.1.220.0040.00418.01
8.1.210.0050.00518.77
8.1.200.0080.00417.47
8.1.190.0030.00617.65
8.1.180.0100.00018.86
8.1.170.0050.00518.96
8.1.160.0000.00822.08
8.1.150.0060.00318.93
8.1.140.0040.00817.71
8.1.130.0030.00517.85
8.1.120.0030.00617.71
8.1.110.0000.00917.59
8.1.100.0030.00617.71
8.1.90.0000.00917.53
8.1.80.0060.00317.69
8.1.70.0000.00817.68
8.1.60.0060.00317.78
8.1.50.0000.01017.65
8.1.40.0000.00917.68
8.1.30.0030.00617.74
8.1.20.0030.00617.78
8.1.10.0030.00617.77
8.1.00.0050.00517.68
8.0.300.0060.00318.77
8.0.290.0030.00617.30
8.0.280.0050.00518.59
8.0.270.0030.00517.41
8.0.260.0050.00517.16
8.0.250.0040.00417.31
8.0.240.0060.00317.28
8.0.230.0040.00417.35
8.0.220.0000.00817.14
8.0.210.0000.00817.09
8.0.200.0040.00417.29
8.0.190.0000.00817.26
8.0.180.0040.00417.22
8.0.170.0000.00817.25
8.0.160.0060.00317.13
8.0.150.0000.00917.08
8.0.140.0030.00617.14
8.0.130.0000.00813.70
8.0.120.0000.00917.19
8.0.110.0030.00617.22
8.0.100.0000.00917.04
8.0.90.0060.00317.05
8.0.80.0090.00917.15
8.0.70.0000.00917.29
8.0.60.0030.00617.20
8.0.50.0000.00917.29
8.0.30.0100.01317.29
8.0.20.0140.00917.51
8.0.10.0000.00917.25
8.0.00.0080.01217.00
7.4.330.0060.00015.00
7.4.320.0040.00416.82
7.4.300.0030.00516.98
7.4.290.0000.00816.83
7.4.280.0000.00816.91
7.4.270.0030.00516.84
7.4.260.0120.00016.99
7.4.250.0060.00316.90
7.4.240.0040.00516.87
7.4.230.0030.00616.97
7.4.220.0120.00916.79
7.4.210.0070.01016.92
7.4.200.0030.00616.68
7.4.190.0060.00317.02
7.4.160.0120.00816.94
7.4.150.0070.01317.40
7.4.140.0110.00817.86
7.4.130.0190.01516.82
7.4.120.0120.00816.77
7.4.110.0140.00516.60
7.4.100.0110.01117.02
7.4.90.0100.01716.58
7.4.80.0120.00919.39
7.4.70.0110.01116.66
7.4.60.0070.01416.69
7.4.50.0000.01116.84
7.4.40.0030.01322.77
7.4.30.0110.00816.89
7.4.00.0090.00914.98
7.3.330.0060.00013.49
7.3.320.0000.00713.36
7.3.310.0000.00816.36
7.3.300.0000.00816.44
7.3.290.0100.01316.64
7.3.280.0080.01016.52
7.3.270.0140.00517.40
7.3.260.0170.00316.39
7.3.250.0080.01116.69
7.3.240.0070.01216.58
7.3.230.0030.01716.55
7.3.210.0100.00816.59
7.3.200.0060.01219.39
7.3.190.0170.01016.43
7.3.180.0060.01216.68
7.3.170.0090.00916.43
7.3.160.0090.00916.59
7.3.120.0070.00714.73
7.2.330.0040.01616.98
7.2.320.0160.01316.86
7.2.310.0140.01016.87
7.2.300.0100.01016.83
7.2.290.0050.01416.85
7.2.00.0070.00719.77
7.1.100.0070.00718.66
7.1.70.0040.01117.38
7.1.60.0090.01919.82
7.1.50.0100.01717.13
7.1.00.0000.08022.64
7.0.200.0030.00617.02
7.0.140.0000.08022.25
7.0.60.0100.07319.96
7.0.50.0070.08717.93
7.0.40.0030.08320.27
7.0.30.0170.04720.11
7.0.20.0130.05320.27
7.0.10.0400.06720.10
7.0.00.0100.06320.15
5.6.280.0070.07321.08
5.6.210.0170.08320.65
5.6.200.0070.07018.19
5.6.190.0030.09320.27
5.6.180.3670.04020.69
5.6.170.0130.05320.49
5.6.160.0030.08320.48
5.6.150.0100.08318.16
5.6.140.0100.07718.15
5.6.130.0030.09018.20
5.6.120.0230.07021.12
5.6.110.0170.09021.02
5.6.100.0170.08321.13
5.6.90.0070.08321.12
5.6.80.0230.07320.42
5.6.70.4070.04020.51
5.5.350.0100.08320.49
5.5.340.0030.05317.89
5.5.330.0030.10320.43
5.5.320.0200.05720.18
5.5.310.0300.06320.29
5.5.300.0130.06317.95
5.5.290.0170.08317.96
5.5.280.0100.07020.77
5.5.270.0100.05020.79
5.5.260.0170.08320.88
5.5.250.0100.08720.66
5.5.240.0200.05720.16
5.4.450.0170.06319.14
5.4.440.0670.06719.55
5.4.430.0430.06719.46
5.4.420.0070.06319.13
5.4.410.0630.05719.19
5.4.400.0800.00018.81
5.4.390.0800.00018.74
5.4.380.0400.06718.67
5.4.370.1000.05718.58
5.4.360.1030.05318.55
5.4.350.0900.06718.61
5.4.340.1070.05318.75
5.4.320.0080.03812.47
5.4.310.0100.04112.46
5.4.300.0040.04512.47
5.4.290.0090.04012.46
5.4.280.0080.03812.36
5.4.270.0070.04512.36
5.4.260.0100.05318.88
5.4.250.0070.08318.86
5.4.240.0030.06318.63
5.4.230.0100.05718.72
5.4.220.0170.06718.81
5.4.210.0100.07018.88
5.4.200.0170.04718.98
5.4.190.0130.05018.83
5.4.180.0170.04718.90
5.4.170.0100.06718.87
5.4.160.0070.05718.72
5.4.150.0030.06718.84
5.4.140.0130.05016.49
5.4.130.0100.05016.43
5.4.120.0100.05316.40
5.4.110.0070.06016.33
5.4.100.0170.04316.34
5.4.90.0070.05016.41
5.4.80.0130.04716.23
5.4.70.0070.05316.47
5.4.60.0030.05716.36
5.4.50.0100.05316.24
5.4.40.0130.05016.29
5.4.30.0130.05016.44
5.4.20.0070.05716.47
5.4.10.0170.05316.44
5.4.00.0070.05315.72
5.3.290.0100.05212.80
5.3.280.0100.05714.48
5.3.270.0130.06014.46
5.3.260.0100.05314.62
5.3.250.0070.06314.31
5.3.240.0070.06714.70
5.3.230.0030.06014.61
5.3.220.0070.05714.46
5.3.210.0070.05714.46
5.3.200.0070.07714.57
5.3.190.0230.06314.45
5.3.180.0030.06014.59
5.3.170.0000.06014.66
5.3.160.0130.04714.58
5.3.150.0100.05314.42
5.3.140.0100.05314.57
5.3.130.0070.06014.33
5.3.120.0030.06014.25
5.3.110.0070.06314.71
5.3.100.0030.06014.05
5.3.90.0130.07314.17
5.3.80.0070.05714.07
5.3.70.0000.07313.88
5.3.60.0030.08014.04
5.3.50.0000.06013.79
5.3.40.0000.06014.04
5.3.30.0070.05013.93
5.3.20.0070.05313.71
5.3.10.0000.05713.75
5.3.00.0130.04713.75
5.2.170.0000.05311.17
5.2.160.0070.04311.07
5.2.150.0030.06311.10
5.2.140.0070.04311.15
5.2.130.0030.04311.12
5.2.120.0030.04711.11
5.2.110.0170.03311.04
5.2.100.0170.03311.19
5.2.90.0030.04311.12
5.2.80.0070.06310.93
5.2.70.0000.05011.00
5.2.60.0030.05710.94
5.2.50.0000.06010.79
5.2.40.0070.06310.93
5.2.30.0030.05711.10
5.2.20.0030.06310.98
5.2.10.0070.05710.78
5.2.00.0100.06710.66
5.1.60.0030.05010.15
5.1.50.0130.0439.77
5.1.40.0030.0709.93
5.1.30.0030.08010.36
5.1.20.0230.06010.43
5.1.10.0030.06310.01
5.1.00.0030.0879.98
5.0.50.0000.0838.64
5.0.40.0030.0278.43
5.0.30.0100.0508.16
5.0.20.0100.0308.15
5.0.10.0070.0278.36
5.0.00.0000.0438.30
4.4.90.0100.0305.77
4.4.80.0000.0375.77
4.4.70.0070.0375.77
4.4.60.0030.0375.77
4.4.50.0070.0335.82
4.4.40.0000.0535.77
4.4.30.0000.0405.77
4.4.20.0070.0475.91
4.4.10.0100.0475.86
4.4.00.0100.0735.82
4.3.110.0100.0175.74
4.3.100.0030.0205.69
4.3.90.0070.0235.74
4.3.80.0000.0375.70
4.3.70.0000.0205.69
4.3.60.0000.0235.69
4.3.50.0030.0205.69
4.3.40.0000.0475.69
4.3.30.0000.0275.69
4.3.20.0100.0205.69
4.3.10.0030.0205.69
4.3.00.0100.0206.84

preferences:
43.28 ms | 400 KiB | 5 Q