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_PATTERN_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.40.0100.01018.95
8.3.30.0090.00919.18
8.3.20.0040.00720.35
8.3.10.0080.00322.13
8.3.00.0030.00720.54
8.2.170.0130.01322.96
8.2.160.0090.00919.29
8.2.150.0000.01124.18
8.2.140.0030.00724.66
8.2.130.0070.01726.16
8.2.120.0060.00619.77
8.2.110.0080.00420.66
8.2.100.0080.00818.04
8.2.90.0040.00718.41
8.2.80.0060.00618.18
8.2.70.0080.00417.75
8.2.60.0060.00618.05
8.2.50.0060.00618.07
8.2.40.0040.00718.22
8.2.30.0030.00818.13
8.2.20.0040.00718.00
8.2.10.0070.00417.93
8.2.00.0070.00718.08
8.1.270.0100.00022.08
8.1.260.0070.00326.35
8.1.250.0030.00728.09
8.1.240.0040.00822.31
8.1.230.0040.01120.79
8.1.220.0030.00817.89
8.1.210.0060.00619.05
8.1.200.0100.00317.60
8.1.190.0000.01117.79
8.1.180.0060.00618.77
8.1.170.0060.00618.76
8.1.160.0030.00722.30
8.1.150.0030.00918.82
8.1.140.0030.00817.72
8.1.130.0030.00717.97
8.1.120.0030.00717.66
8.1.110.0030.00917.63
8.1.100.0030.00717.57
8.1.90.0000.01217.55
8.1.80.0040.00717.68
8.1.70.0000.01017.67
8.1.60.0000.01117.73
8.1.50.0060.00617.73
8.1.40.0050.00517.60
8.1.30.0000.01117.74
8.1.20.0080.00417.76
8.1.10.0040.00817.69
8.1.00.0030.01017.51
8.0.300.0080.00320.20
8.0.290.0070.00417.30
8.0.280.0040.00718.58
8.0.270.0030.00717.32
8.0.260.0030.00717.15
8.0.250.0030.00917.21
8.0.240.0030.00717.28
8.0.230.0030.00717.35
8.0.220.0030.00717.25
8.0.210.0030.00717.18
8.0.200.0000.01017.20
8.0.190.0000.01117.26
8.0.180.0000.01117.18
8.0.170.0060.00617.18
8.0.160.0040.00717.21
8.0.150.0030.00917.16
8.0.140.0050.00517.07
8.0.130.0030.00613.64
8.0.120.0060.00617.19
8.0.110.0000.01117.23
8.0.100.0080.00417.09
8.0.90.0040.00817.25
8.0.80.0120.00917.14
8.0.70.0040.00817.13
8.0.60.0000.01117.33
8.0.50.0040.00717.32
8.0.30.0090.01617.33
8.0.20.0100.01517.40
8.0.10.0000.01117.01
8.0.00.0080.01616.96
7.4.330.0030.00615.25
7.4.320.0040.00716.70
7.4.300.0030.00616.94
7.4.290.0040.00716.83
7.4.280.0030.00716.89
7.4.270.0000.01016.96
7.4.260.0000.01016.68
7.4.250.0030.00816.89
7.4.240.0020.00916.92
7.4.230.0050.00516.93
7.4.220.0130.01316.97
7.4.210.0050.01716.97
7.4.200.0040.00716.96
7.4.190.0000.01016.95
7.4.160.0080.01516.81
7.4.150.0030.02117.40
7.4.140.0080.01617.86
7.4.130.0080.01616.77
7.4.120.0140.01016.87
7.4.110.0100.01316.88
7.4.100.0180.00916.73
7.4.90.0130.01316.68
7.4.80.0070.01919.39
7.4.70.0110.02116.64
7.4.60.0090.01616.76
7.4.50.0000.00816.83
7.4.40.0040.01422.77
7.4.30.0060.01616.82
7.4.00.0080.01515.19
7.3.330.0040.00413.43
7.3.320.0030.00613.18
7.3.310.0060.00616.46
7.3.300.0060.00616.56
7.3.290.0060.01516.53
7.3.280.0100.01516.54
7.3.270.0140.01717.40
7.3.260.0100.01816.59
7.3.250.0110.01916.58
7.3.240.0090.01416.79
7.3.230.0150.01516.82
7.3.210.0070.01716.48
7.3.200.0120.01219.39
7.3.190.0180.01216.54
7.3.180.0090.01416.60
7.3.170.0100.01316.43
7.3.160.0070.01616.61
7.3.120.0120.01214.94
7.3.110.0060.01815.08
7.3.100.0080.00614.78
7.3.90.0060.00615.07
7.3.80.0060.01314.76
7.3.70.0000.01515.11
7.3.60.0030.01714.91
7.3.50.0030.01414.80
7.3.40.0070.00715.05
7.3.30.0060.01815.05
7.3.20.0100.01016.82
7.3.10.0100.01016.84
7.3.00.0070.01016.78
7.2.330.0070.01816.62
7.2.320.0030.02016.96
7.2.310.0090.02116.73
7.2.300.0130.01016.86
7.2.290.0100.01316.79
7.2.250.0090.01815.48
7.2.240.0030.02115.16
7.2.230.0100.01315.30
7.2.220.0060.00915.36
7.2.210.0120.00915.01
7.2.200.0070.00715.13
7.2.190.0000.01615.22
7.2.180.0000.02015.28
7.2.170.0040.01115.21
7.1.330.0090.00916.11
7.1.320.0060.01015.92
7.1.310.0070.01016.05
7.1.300.0070.01115.77
7.1.290.0090.00916.15
7.1.280.0070.01516.03
7.1.270.0070.01116.10
7.1.260.0030.01216.09
7.1.100.0000.01718.02
7.1.70.0030.00817.50
7.1.60.0140.02019.82
7.1.50.0090.01617.38
7.1.00.0000.08322.54
7.0.200.0000.01116.93
7.0.140.0000.08322.04
7.0.60.0000.05019.93
7.0.50.0070.09017.85
7.0.40.0100.09320.03
7.0.30.0300.08720.40
7.0.20.0370.07320.07
7.0.10.0270.03720.24
7.0.00.0130.04020.26
5.6.280.0000.10320.91
5.6.210.0070.05320.46
5.6.200.0070.07318.20
5.6.190.0070.05720.68
5.6.180.3100.06020.65
5.6.170.0270.05720.42
5.6.160.0100.05320.51
5.6.150.0100.09718.19
5.6.140.0000.05718.18
5.6.130.0070.11018.14
5.6.120.0070.06020.98
5.6.110.0030.09721.11
5.6.100.0130.09720.97
5.6.90.0070.11020.94
5.6.80.0070.08320.28
5.6.70.4370.09720.39
5.5.350.0000.04720.46
5.5.340.0000.10018.00
5.5.330.0130.12320.22
5.5.320.0200.05720.14
5.5.310.0170.05320.27
5.5.300.0170.10018.01
5.5.290.0030.10717.98
5.5.280.0070.07720.98
5.5.270.0100.09720.77
5.5.260.0070.05320.96
5.5.250.0000.11320.71
5.5.240.0070.08720.16
5.4.450.0530.08019.14
5.4.440.0400.08319.26
5.4.430.0330.08719.64
5.4.420.0230.08719.59
5.4.410.0500.07319.38
5.4.400.2030.00018.57
5.4.390.1470.00018.66
5.4.380.0370.10718.70
5.4.370.0200.12318.67
5.4.360.0400.10318.74
5.4.350.0230.12018.55
5.4.340.0270.12018.61
5.4.320.0050.08412.49
5.4.310.0040.08312.48
5.4.300.0060.08812.48
5.4.290.0050.08712.49
5.4.280.0050.08112.38
5.4.270.0070.08112.38
5.4.260.0030.12018.77
5.4.250.0100.11018.67
5.4.240.0100.11018.79
5.4.230.0100.11318.89
5.4.220.0070.11718.94
5.4.210.0100.11718.98
5.4.200.0070.11718.79
5.4.190.0030.15018.72
5.4.180.0130.10718.89
5.4.170.0170.11718.96
5.4.160.0170.15718.91
5.4.150.0270.10718.71
5.4.140.0130.10716.29
5.4.130.0100.09716.25
5.4.120.0100.08716.46
5.4.110.0230.08016.36
5.4.100.0030.11316.51
5.4.90.0100.10016.39
5.4.80.0030.08016.41
5.4.70.0030.08016.45
5.4.60.0100.07016.41
5.4.50.0070.07716.44
5.4.40.0100.07316.50
5.4.30.0130.07016.52
5.4.20.0170.07016.36
5.4.10.0170.07716.20
5.4.00.0100.07015.86
5.3.290.0040.08612.80
5.3.280.0070.14014.61
5.3.270.0130.14314.53
5.3.260.0130.15014.65
5.3.250.0100.17014.40
5.3.240.0230.16714.53
5.3.230.0130.07014.63
5.3.220.0130.09714.70
5.3.210.0170.07714.60
5.3.200.0100.10014.70
5.3.190.0170.08014.38
5.3.180.0100.07314.52
5.3.170.0070.07714.70
5.3.160.0130.07014.31
5.3.150.0100.07714.48
5.3.140.0070.07714.52
5.3.130.0130.07314.74
5.3.120.0000.10314.44
5.3.110.0070.07714.64
5.3.100.0100.07714.23
5.3.90.0130.10713.74
5.3.80.0100.08013.93
5.3.70.0030.10714.09
5.3.60.0130.06014.05
5.3.50.0100.06013.67
5.3.40.0070.05713.91
5.3.30.0030.05713.63
5.3.20.0100.05313.58
5.3.10.0130.05313.69
5.3.00.0070.05713.54
5.2.170.0030.05311.32
5.2.160.0100.04311.00
5.2.150.0030.05011.26
5.2.140.0230.03011.31
5.2.130.0100.04311.01
5.2.120.0070.06011.07
5.2.110.0200.04011.13
5.2.100.0070.06710.95
5.2.90.0000.05311.12
5.2.80.0030.07011.21
5.2.70.0070.05011.13
5.2.60.0000.06710.96
5.2.50.0070.05711.14
5.2.40.0100.05310.79
5.2.30.0070.06710.92
5.2.20.0100.05710.75
5.2.10.0070.05710.96
5.2.00.0030.06010.80
5.1.60.0070.0839.96
5.1.50.0100.08010.12
5.1.40.0070.0909.97
5.1.30.0070.09010.43
5.1.20.0030.10310.54
5.1.10.0030.10710.30
5.1.00.0070.10010.16
5.0.50.0000.1378.64
5.0.40.0000.0638.37
5.0.30.0030.0878.35
5.0.20.0030.0678.48
5.0.10.0130.0508.20
5.0.00.0130.0778.29
4.4.90.0070.0705.88
4.4.80.0000.0835.79
4.4.70.0000.0775.86
4.4.60.0030.0875.79
4.4.50.0130.0635.83
4.4.40.0030.0835.80
4.4.30.0030.0775.79
4.4.20.0030.0835.89
4.4.10.0030.0835.89
4.4.00.0030.1075.84
4.3.110.0070.0705.71
4.3.100.0000.0635.73
4.3.90.0030.0875.79
4.3.80.0000.0675.71
4.3.70.0030.0505.78
4.3.60.0000.0575.73
4.3.50.0100.0875.69
4.3.40.0030.0835.71
4.3.30.0000.1005.59
4.3.20.0000.0235.59
4.3.10.0070.0175.59
4.3.00.0070.0176.63

preferences:
48.3 ms | 400 KiB | 5 Q