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 . 'facebook' . $urlRegex2, $fullURLSample ) ); $urls = preg_replace( $urlRegex1 . 'facebook' . $urlRegex2, 'http://www.facebook.com', $fullURLSample ); $err = preg_last_error(); var_dump( $err ); if ( $err === PREG_SET_ORDER ) { 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.0240.00318.68
8.3.50.0150.01222.24
8.3.40.0130.00619.10
8.3.30.0100.01019.23
8.3.20.0000.01020.34
8.3.10.0070.00322.10
8.3.00.0030.00720.69
8.2.180.0030.01616.36
8.2.170.0040.01522.96
8.2.160.0160.00319.33
8.2.150.0060.00624.18
8.2.140.0070.00324.66
8.2.130.0060.01826.16
8.2.120.0030.00819.73
8.2.110.0100.00320.34
8.2.100.0080.00818.22
8.2.90.0040.00818.22
8.2.80.0040.00718.18
8.2.70.0030.00918.00
8.2.60.0030.00818.05
8.2.50.0040.00718.07
8.2.40.0030.00918.22
8.2.30.0030.00818.26
8.2.20.0040.00717.96
8.2.10.0040.00818.08
8.2.00.0080.00818.14
8.1.280.0100.01725.92
8.1.270.0070.00322.19
8.1.260.0070.00326.35
8.1.250.0030.00728.09
8.1.240.0070.00422.37
8.1.230.0040.01120.94
8.1.220.0060.00618.03
8.1.210.0000.01219.17
8.1.200.0030.00917.50
8.1.190.0000.01117.53
8.1.180.0030.00918.89
8.1.170.0060.00618.70
8.1.160.0030.00722.18
8.1.150.0030.00818.90
8.1.140.0000.01117.60
8.1.130.0030.00717.97
8.1.120.0030.00717.68
8.1.110.0060.00617.55
8.1.100.0030.00717.68
8.1.90.0040.00717.68
8.1.80.0030.00717.71
8.1.70.0030.00717.68
8.1.60.0000.01217.68
8.1.50.0040.00817.75
8.1.40.0050.00517.69
8.1.30.0000.01217.73
8.1.20.0040.00717.86
8.1.10.0060.00617.75
8.1.00.0060.00617.66
8.0.300.0060.00620.12
8.0.290.0000.01117.30
8.0.280.0030.00718.44
8.0.270.0070.00317.31
8.0.260.0000.01017.03
8.0.250.0030.00717.31
8.0.240.0070.00417.23
8.0.230.0030.00717.17
8.0.220.0000.01017.18
8.0.210.0060.00617.21
8.0.200.0030.00617.29
8.0.190.0030.00917.25
8.0.180.0000.01017.24
8.0.170.0000.01117.23
8.0.160.0040.00817.21
8.0.150.0040.00817.18
8.0.140.0000.01117.08
8.0.130.0000.01013.60
8.0.120.0090.00317.13
8.0.110.0000.01117.05
8.0.100.0000.01117.02
8.0.90.0060.00617.19
8.0.80.0150.00617.22
8.0.70.0000.01217.05
8.0.60.0060.00617.25
8.0.50.0030.00717.22
8.0.30.0100.01517.37
8.0.20.0130.01217.40
8.0.10.0000.01117.08
8.0.00.0090.01717.15
7.4.330.0000.00815.25
7.4.320.0060.00616.94
7.4.300.0000.00916.94
7.4.290.0000.01016.84
7.4.280.0070.00316.77
7.4.270.0000.01116.82
7.4.260.0030.00716.96
7.4.250.0060.00616.83
7.4.240.0030.00716.87
7.4.230.0030.00716.97
7.4.220.0060.02216.78
7.4.210.0080.01316.93
7.4.200.0050.00616.72
7.4.190.0000.01116.87
7.4.160.0130.01016.76
7.4.150.0120.01217.40
7.4.140.0110.01317.86
7.4.130.0100.01616.87
7.4.120.0080.01516.74
7.4.110.0060.01716.82
7.4.100.0100.01316.58
7.4.90.0090.01516.65
7.4.80.0090.01619.39
7.4.70.0100.02116.77
7.4.60.0100.01316.63
7.4.50.0030.01016.66
7.4.40.0060.01522.77
7.4.30.0130.01016.78
7.4.00.0030.01015.44
7.3.330.0000.01013.29
7.3.320.0000.00813.39
7.3.310.0030.00916.51
7.3.300.0040.00716.40
7.3.290.0100.01116.56
7.3.280.0100.01516.52
7.3.270.0130.01017.40
7.3.260.0090.01516.49
7.3.250.0110.01216.57
7.3.240.0100.01316.69
7.3.230.0080.01616.72
7.3.210.0060.01616.78
7.3.200.0120.02019.39
7.3.190.0100.01416.76
7.3.180.0090.01316.51
7.3.170.0030.02216.63
7.3.160.0100.02016.45
7.3.120.0070.01014.98
7.2.330.0190.01016.87
7.2.320.0090.01616.96
7.2.310.0100.01616.84
7.2.300.0050.01916.74
7.2.290.0110.01416.89
7.2.00.0060.01519.85
7.1.100.0070.01318.30
7.1.70.0000.01117.26
7.1.60.0070.02319.82
7.1.50.0000.02417.37
7.1.00.0030.08022.43
7.0.200.0040.00816.75
7.0.140.0070.08022.25
7.0.60.0000.10020.10
7.0.50.0170.08717.93
7.0.40.0100.06320.29
7.0.30.0470.07020.16
7.0.20.0330.08020.19
7.0.10.0100.08020.21
7.0.00.0000.10720.05
5.6.280.0130.08720.89
5.6.210.0070.10320.50
5.6.200.0030.07718.14
5.6.190.0130.10720.59
5.6.180.0400.09020.42
5.6.170.0430.08720.51
5.6.160.0000.07320.72
5.6.150.0170.09718.10
5.6.140.0000.06018.20
5.6.130.0070.10318.09
5.6.120.0170.09320.98
5.6.110.0100.09020.99
5.6.100.0070.10320.98
5.6.90.0070.06020.98
5.6.80.0100.08320.50
5.5.350.0230.06720.41
5.5.340.0030.10018.00
5.5.330.0100.07320.14
5.5.320.0030.11720.14
5.5.310.0300.09720.21
5.5.300.0000.09717.99
5.5.290.0100.09717.93
5.5.280.0070.06320.87
5.5.270.0200.10020.84
5.5.260.0170.10720.96
5.5.250.0000.10720.68
5.5.240.0330.12720.27
5.4.450.0270.09719.47
5.4.440.0270.07719.56
5.4.430.0270.05319.39
5.4.420.0230.06719.39
5.4.410.0300.09319.30
5.4.400.0270.12318.95
5.4.390.0370.11319.23
5.4.380.0400.08318.83
5.4.370.0270.07019.26
5.4.360.0300.08019.18
5.4.350.0230.07318.81
5.4.340.0070.08018.81
5.4.320.0200.09719.10
5.4.310.0170.07318.90
5.4.300.0130.08719.15
5.4.290.0170.08019.27
5.4.280.0100.12318.95
5.4.270.0230.07318.95
5.4.260.0000.08019.11
5.4.250.0030.07319.10
5.4.240.0100.09319.17
5.4.230.0070.09318.80
5.4.220.0000.09019.14
5.4.210.0030.08318.90
5.4.200.0030.14018.89
5.4.190.0100.12719.07
5.4.180.0100.12319.07
5.4.170.0030.13319.10
5.4.160.0030.07319.16
5.4.150.0030.07319.09
5.4.140.0070.13016.38
5.4.130.0000.07016.20
5.4.120.0100.08716.39
5.4.110.0030.10016.25
5.4.100.0030.06016.24
5.4.90.0070.08016.25
5.4.80.0030.09016.39
5.4.70.0070.05016.43
5.4.60.0030.05316.41
5.4.50.0070.09016.40
5.4.40.0000.09716.48
5.4.30.0070.05016.23
5.4.20.0070.06716.29
5.4.10.0000.05316.41
5.4.00.0030.08715.81
5.3.290.0170.13014.78
5.3.280.0070.12314.55
5.3.270.0030.11314.68
5.3.260.0030.11014.58
5.3.250.0030.11314.66
5.3.240.0000.14014.56
5.3.230.0070.09714.46
5.3.220.0070.06314.45
5.3.210.0000.09314.70
5.3.200.0070.10014.70
5.3.190.0030.07314.54
5.3.180.0030.06714.44
5.3.170.0030.07014.57
5.3.160.0030.08314.44
5.3.150.0030.07714.51
5.3.140.0000.10714.69
5.3.130.0070.05714.50
5.3.120.0070.05314.46
5.3.110.0000.05714.45
5.3.100.0000.07014.01
5.3.90.0030.06713.89
5.3.80.0030.06013.92
5.3.70.0070.08714.13
5.3.60.0000.07713.93
5.3.50.0030.07313.80
5.3.40.0070.07313.80
5.3.30.0100.05713.78
5.3.20.0100.04013.59
5.3.10.0030.05313.55
5.3.00.0000.06313.50
5.2.170.0100.03012.39
5.2.160.0000.04012.39
5.2.150.0000.05012.39
5.2.140.0000.04012.39
5.2.130.0030.03712.39
5.2.120.0070.07012.39
5.2.110.0030.06712.39
5.2.100.0000.03312.39
5.2.90.0030.07012.39
5.2.80.0030.04312.39
5.2.70.0070.06712.39
5.2.60.0030.04012.39
5.2.50.0030.04012.39
5.2.40.0030.05012.39
5.2.30.0000.05312.39
5.2.20.0070.05012.39
5.2.10.0070.07312.39
5.2.00.0000.04712.39
5.1.60.0070.11012.39
5.1.50.0000.06012.39
5.1.40.0030.05712.39
5.1.30.0030.10712.39
5.1.20.0030.06712.39
5.1.10.0070.11712.39
5.1.00.0070.09312.39
5.0.50.0030.10712.39
5.0.40.0030.07712.39
5.0.30.0030.09712.39
5.0.20.0070.05312.39
5.0.10.0030.04012.39
5.0.00.0030.09312.39
4.4.90.0000.05312.39
4.4.80.0030.04312.39
4.4.70.0030.08712.39
4.4.60.0000.10012.39
4.4.50.0000.09012.39
4.4.40.0000.07012.39
4.4.30.0000.06312.39
4.4.20.0000.11012.39
4.4.10.0000.07712.39
4.4.00.0000.07712.39
4.3.110.0030.04712.39
4.3.100.0070.06712.39
4.3.90.0030.07012.39
4.3.80.0030.08712.39
4.3.70.0000.04012.39
4.3.60.0070.06712.39
4.3.50.0030.05712.39
4.3.40.0000.06312.39
4.3.30.0000.07312.39
4.3.20.0070.02712.39
4.3.10.0070.02012.39
4.3.00.0000.02712.39

preferences:
53.19 ms | 400 KiB | 5 Q