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.0140.00718.68
8.3.50.0080.01022.24
8.3.40.0070.01019.14
8.3.30.0070.01019.04
8.3.20.0000.00820.21
8.3.10.0040.00422.09
8.3.00.0090.00022.44
8.2.180.0030.01416.63
8.2.170.0180.00622.96
8.2.160.0100.01022.20
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00919.73
8.2.110.0050.00522.37
8.2.100.0060.00618.09
8.2.90.0000.01019.33
8.2.80.0030.00718.05
8.2.70.0000.00918.00
8.2.60.0000.01018.05
8.2.50.0030.00618.07
8.2.40.0030.00618.34
8.2.30.0040.00418.24
8.2.20.0060.00318.02
8.2.10.0060.00318.14
8.2.00.0000.00918.05
8.1.280.0100.00625.92
8.1.270.0030.00623.87
8.1.260.0030.00626.35
8.1.250.0060.00328.09
8.1.240.0070.00322.20
8.1.230.0130.00024.03
8.1.220.0040.00418.01
8.1.210.0000.00918.77
8.1.200.0070.00317.47
8.1.190.0000.00917.66
8.1.180.0000.00918.91
8.1.170.0000.00918.90
8.1.160.0000.00822.10
8.1.150.0060.00318.79
8.1.140.0060.00617.69
8.1.130.0030.00517.98
8.1.120.0060.00317.65
8.1.110.0000.00917.69
8.1.100.0060.00317.55
8.1.90.0000.00817.71
8.1.80.0000.00917.64
8.1.70.0030.00517.64
8.1.60.0060.00317.66
8.1.50.0000.00917.74
8.1.40.0030.00717.72
8.1.30.0050.00517.84
8.1.20.0030.00617.86
8.1.10.0030.00617.79
8.1.00.0030.00717.63
8.0.300.0000.00918.77
8.0.290.0000.00817.29
8.0.280.0040.00418.59
8.0.270.0040.00417.34
8.0.260.0030.00517.11
8.0.250.0000.00817.31
8.0.240.0000.00917.17
8.0.230.0040.00417.33
8.0.220.0000.00817.14
8.0.210.0040.00417.16
8.0.200.0000.00817.20
8.0.190.0080.00017.36
8.0.180.0000.00817.29
8.0.170.0000.00817.18
8.0.160.0030.00617.15
8.0.150.0000.00917.09
8.0.140.0040.00417.22
8.0.130.0030.00313.62
8.0.120.0030.00717.10
8.0.110.0060.00617.16
8.0.100.0090.00017.29
8.0.90.0000.00917.29
8.0.80.0000.01717.23
8.0.70.0030.00617.10
8.0.60.0050.00517.27
8.0.50.0030.00617.21
8.0.30.0080.01617.27
8.0.20.0120.01217.40
8.0.10.0030.00617.18
8.0.00.0080.01616.97
7.4.330.0030.00315.00
7.4.320.0000.00716.91
7.4.300.0050.00316.76
7.4.290.0040.00416.86
7.4.280.0000.01016.75
7.4.270.0040.00416.85
7.4.260.0000.01116.82
7.4.250.0000.01016.82
7.4.240.0060.00316.90
7.4.230.0050.00317.05
7.4.220.0060.01616.80
7.4.210.0020.01916.90
7.4.200.0060.00316.71
7.4.190.0030.00616.73
7.4.160.0040.01516.79
7.4.150.0100.01017.40
7.4.140.0100.01417.86
7.4.130.0110.01116.75
7.4.120.0050.01516.85
7.4.110.0090.00916.93
7.4.100.0080.01116.90
7.4.90.0070.01416.66
7.4.80.0100.01319.39
7.4.70.0130.00816.81
7.4.60.0040.01616.82
7.4.50.0050.00316.77
7.4.40.0120.00622.77
7.4.30.0080.01116.70
7.4.10.0030.01716.84
7.4.00.0100.00915.95
7.3.330.0030.00313.40
7.3.320.0030.00313.40
7.3.310.0050.00316.44
7.3.300.0040.00416.55
7.3.290.0120.01216.59
7.3.280.0050.01316.53
7.3.270.0060.01317.40
7.3.260.0160.00416.77
7.3.250.0090.01116.53
7.3.240.0080.01116.55
7.3.230.0000.01916.57
7.3.210.0110.00816.53
7.3.200.0120.00619.39
7.3.190.0110.01516.51
7.3.180.0050.01316.59
7.3.170.0070.01016.69
7.3.160.0090.00916.54
7.3.130.0120.01216.44
7.3.120.0100.01015.87
7.3.110.0040.01115.68
7.3.100.0060.01015.95
7.3.90.0090.00415.88
7.3.80.0040.01015.70
7.3.70.0030.01515.80
7.3.60.0080.00915.76
7.3.50.0030.01215.53
7.3.40.0030.01215.69
7.3.30.0070.01015.79
7.3.20.0090.01017.53
7.3.10.0050.01017.30
7.3.00.0050.01017.38
7.2.330.0120.00616.84
7.2.320.0150.00816.84
7.2.310.0080.01216.82
7.2.300.0110.00816.85
7.2.290.0110.00816.91
7.2.260.0070.01616.89
7.2.250.0060.01816.87
7.2.240.0080.01116.13
7.2.230.0060.00616.04
7.2.220.0070.00516.21
7.2.210.0050.01016.01
7.2.200.0100.00715.88
7.2.190.0050.00915.88
7.2.180.0060.01116.05
7.2.170.0060.00815.97
7.2.160.0110.00616.00
7.2.150.0090.00618.01
7.2.140.0050.01317.96
7.2.130.0030.01217.68
7.2.120.0060.01117.47
7.2.110.0050.00717.64
7.2.100.0050.00917.54
7.2.90.0060.01217.74
7.2.80.0040.01017.60
7.2.70.0040.01117.72
7.2.60.0060.01017.52
7.2.50.0050.01117.57
7.2.40.0060.00617.51
7.2.30.0070.01017.69
7.2.20.0060.00617.56
7.2.10.0050.01017.60
7.2.00.0060.01118.18
7.1.330.0090.00716.96
7.1.320.0050.00516.75
7.1.310.0020.01416.88
7.1.300.0020.01416.77
7.1.290.0050.01116.72
7.1.280.0020.01416.78
7.1.270.0050.01316.69
7.1.260.0080.00716.81
7.1.250.0060.01216.37
7.1.240.0000.01417.67
7.1.230.0060.00917.50
7.1.220.0000.01617.60
7.1.210.0080.00817.69
7.1.200.0000.01716.79
7.1.190.0070.01017.46
7.1.180.0030.00917.45
7.1.170.0100.00317.56
7.1.160.0100.00717.47
7.1.150.0000.01117.58
7.1.140.0030.01017.55
7.1.130.0120.00417.58
7.1.120.0100.00317.63
7.1.110.0040.00817.46
7.1.100.0070.00718.06
7.1.90.0100.01017.48
7.1.80.0030.01417.62
7.1.70.0030.00917.57
7.1.60.0090.01318.68
7.1.50.0050.01417.52
7.1.40.0070.00717.76
7.1.30.0030.01317.70
7.1.20.0090.00917.44
7.1.10.0070.01017.54
7.1.00.0080.05020.11
7.0.330.0120.00817.05
7.0.320.0070.01017.16
7.0.310.0060.00917.15
7.0.300.0040.01417.20
7.0.290.0070.01017.05
7.0.280.0030.00917.07
7.0.270.0060.00917.17
7.0.260.0080.00317.43
7.0.250.0060.00917.43
7.0.240.0000.01417.50
7.0.230.0030.01717.16
7.0.220.0070.01317.19
7.0.210.0000.01217.21
7.0.200.0020.01217.12
7.0.190.0070.01117.53
7.0.180.0070.00717.31
7.0.170.0080.00817.37
7.0.160.0090.00917.32
7.0.150.0080.01517.23
7.0.140.0070.04819.64
7.0.130.0130.01317.16
7.0.120.0090.00917.25
7.0.110.0060.01017.46
7.0.100.0070.01117.15
7.0.90.0060.01317.29
7.0.80.0040.01617.23
7.0.70.0060.01217.30
7.0.60.0100.04318.64
7.0.50.0070.05217.48
7.0.40.0120.04517.68
7.0.30.0160.04017.70
7.0.20.0200.02817.71
7.0.10.0190.03617.75
7.0.00.0080.03917.67
5.6.400.0110.01116.07
5.6.390.0070.01315.75
5.6.380.0060.00615.95
5.6.370.0040.01116.01
5.6.360.0100.01315.93
5.6.350.0070.00716.10
5.6.340.0060.00915.82
5.6.330.0030.01415.92
5.6.320.0040.00716.04
5.6.310.0120.00316.14
5.6.300.0030.01716.06
5.6.290.0070.01415.76
5.6.280.0100.04118.68
5.6.270.0030.01015.96
5.6.260.0000.01415.80
5.6.250.0070.01016.04
5.6.240.0070.01015.77
5.6.230.0000.01615.95
5.6.220.0100.00715.91
5.6.210.0070.03918.26
5.6.200.0050.05217.02
5.6.190.0100.04818.27
5.6.180.1680.02918.11
5.6.170.0330.04018.11
5.6.160.0060.03118.24
5.6.150.0060.02517.00
5.6.140.0100.04517.00
5.6.130.0070.03216.99
5.6.120.0080.04518.65
5.6.110.0090.04518.42
5.6.100.0020.05318.47
5.6.90.0030.03818.47
5.6.80.0080.04718.10
5.6.70.2230.02718.20
5.6.60.0070.01116.05
5.6.50.0070.01015.70
5.6.40.0100.00715.75
5.6.30.0040.01515.71
5.6.20.0030.01115.84
5.6.10.0110.00715.63
5.6.00.0070.01015.84
5.5.380.0130.00315.65
5.5.370.0130.00615.68
5.5.360.0040.01515.82
5.5.350.0050.04518.12
5.5.340.0080.03816.86
5.5.330.0070.04518.06
5.5.320.0190.04017.93
5.5.310.0200.04818.05
5.5.300.0050.05216.89
5.5.290.0100.03116.99
5.5.280.0050.03318.25
5.5.270.0030.03218.30
5.5.260.0030.03218.30
5.5.250.0080.04618.14
5.5.240.0070.04917.90
5.5.230.0070.00715.65
5.5.220.0100.00715.59
5.5.210.0000.01115.56
5.5.200.0090.00915.77
5.5.190.0000.01515.70
5.5.180.0080.00815.77
5.5.170.0120.00415.87
5.5.160.0100.00615.79
5.5.150.0070.00715.71
5.5.140.0070.01315.56
5.5.130.0070.01315.88
5.5.120.0100.01015.86
5.5.110.0070.00715.71
5.5.100.0040.01515.62
5.5.90.0030.01015.85
5.5.80.0120.00615.83
5.5.70.0060.00615.57
5.5.60.0040.01615.46
5.5.50.0060.00915.52
5.5.40.0000.01915.72
5.5.30.0000.01515.77
5.5.20.0070.00715.68
5.5.10.0070.01315.54
5.5.00.0060.00915.61
5.4.450.0830.03215.99
5.4.440.0770.02715.96
5.4.430.0850.03616.13
5.4.420.0830.02515.85
5.4.410.0850.02715.98
5.4.400.0880.03015.78
5.4.390.0770.02615.69
5.4.380.0850.01715.80
5.4.370.0780.02315.68
5.4.360.0870.03215.75
5.4.350.0850.02615.72
5.4.340.0770.02415.59
5.4.330.0000.01412.61
5.4.320.0870.03115.61
5.4.310.0910.02415.79
5.4.300.0870.03415.93
5.4.290.0800.02315.70
5.4.280.0830.02515.57
5.4.270.0060.04315.80
5.4.260.0040.03415.73
5.4.250.0390.01915.59
5.4.240.0920.03015.67
5.4.230.0810.02315.84
5.4.220.0770.03115.96
5.4.210.0960.02715.92
5.4.200.0960.02815.77
5.4.190.0920.03115.80
5.4.180.0820.02415.87
5.4.170.0820.02715.84
5.4.160.0870.03215.72
5.4.150.0820.02615.57
5.4.140.0810.02514.42
5.4.130.0030.02814.46
5.4.120.0060.02314.37
5.4.110.0370.02414.52
5.4.100.0880.01814.21
5.4.90.0930.02514.55
5.4.80.0800.02114.39
5.4.70.0870.02714.56
5.4.60.0800.02314.44
5.4.50.0780.02714.40
5.4.40.0800.02514.41
5.4.30.0790.02614.24
5.4.20.0800.02114.51
5.4.10.0800.02414.45
5.4.00.0730.02514.21
5.3.290.0550.03213.77
5.3.280.0030.02813.82
5.3.270.0070.02913.77
5.3.260.0600.02113.77
5.3.250.0970.02513.75
5.3.240.0950.03313.67
5.3.230.0940.02113.82
5.3.220.0900.03013.73
5.3.210.0900.02613.73
5.3.200.0880.02913.77
5.3.190.0780.03213.70
5.3.180.0870.02713.72
5.3.170.0910.02813.74
5.3.160.0850.03213.85
5.3.150.0520.02713.74
5.3.140.0020.05213.71
5.3.130.0020.04413.60
5.3.120.0720.03213.75
5.3.110.0780.02513.62
5.3.100.0770.02413.43
5.3.90.0920.02713.53
5.3.80.0850.02313.35
5.3.70.0850.02713.33
5.3.60.0820.02613.60
5.3.50.0840.01713.36
5.3.40.0680.03013.36
5.3.30.0670.02513.37
5.3.20.0900.02613.22
5.3.10.0810.02413.15
5.3.00.0050.02113.10
5.2.170.0000.03311.01
5.2.160.0000.03711.17
5.2.150.1200.03011.06
5.2.140.1230.03011.22
5.2.130.1200.02711.01
5.2.120.1000.03711.15
5.2.110.0000.03311.26
5.2.100.0000.07310.96
5.2.90.0030.04711.13
5.2.80.0000.03311.11
5.2.70.1130.03011.01
5.2.60.1370.03710.89
5.2.50.1130.04310.86
5.2.40.0900.03711.05
5.2.30.1000.04010.86
5.2.20.0930.04010.81
5.2.10.0830.04310.93
5.2.00.1030.03310.72
5.1.60.1000.03710.12
5.1.50.0500.0339.97
5.1.40.0030.03310.06
5.1.30.0000.04310.27
5.1.20.0000.04710.46
5.1.10.0400.04310.01
5.1.00.0870.04710.09
5.0.50.0570.0408.63
5.0.40.0330.0238.35
5.0.30.0530.0308.31
5.0.20.0370.0208.17
5.0.10.0530.0208.05
5.0.00.0630.0408.24
4.4.90.0500.0277.79
4.4.80.0470.0237.79
4.4.70.0500.0277.79
4.4.60.0530.0307.79
4.4.50.0500.0277.79
4.4.40.0400.0337.79
4.4.30.0530.0337.79
4.4.20.0470.0377.79
4.4.10.0400.0337.79
4.4.00.0470.0407.79
4.3.110.0530.0137.79
4.3.100.0600.0177.79
4.3.90.0530.0137.79
4.3.80.0530.0237.79
4.3.70.0000.0177.79
4.3.60.0000.0207.79
4.3.50.0000.0177.79
4.3.40.0000.0237.79
4.3.30.0030.0137.79
4.3.20.0000.0177.79
4.3.10.0000.0177.79
4.3.00.0000.0177.79

preferences:
41.44 ms | 401 KiB | 5 Q