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_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.0070.01516.75
8.3.50.0090.01622.21
8.3.40.0070.01319.01
8.3.30.0060.01219.07
8.3.20.0070.00320.12
8.3.10.0030.00723.53
8.3.00.0040.00719.56
8.2.180.0100.01018.54
8.2.170.0060.01222.96
8.2.160.0090.00920.51
8.2.150.0070.00324.18
8.2.140.0080.00324.66
8.2.130.0000.01126.16
8.2.120.0070.00322.39
8.2.110.0000.01222.20
8.2.100.0040.01218.22
8.2.90.0000.01119.30
8.2.80.0040.00718.18
8.2.70.0030.00918.00
8.2.60.0000.01118.05
8.2.50.0060.00618.07
8.2.40.0070.00418.34
8.2.30.0000.01118.26
8.2.20.0080.00417.97
8.2.10.0030.00819.89
8.2.00.0000.01118.07
8.1.280.0140.01025.92
8.1.270.0030.00724.04
8.1.260.0070.00326.35
8.1.250.0030.00628.09
8.1.240.0070.00423.76
8.1.230.0080.00619.22
8.1.220.0000.01117.86
8.1.210.0000.01118.77
8.1.200.0070.00717.47
8.1.190.0060.00617.54
8.1.180.0000.01218.10
8.1.170.0030.00918.91
8.1.160.0080.00421.95
8.1.150.0000.01218.92
8.1.140.0000.01117.72
8.1.130.0030.00718.02
8.1.120.0000.01017.64
8.1.110.0050.00517.55
8.1.100.0000.01117.55
8.1.90.0040.00717.59
8.1.80.0000.01117.67
8.1.70.0000.01117.56
8.1.60.0060.00617.82
8.1.50.0000.01117.73
8.1.40.0040.00717.74
8.1.30.0040.00917.80
8.1.20.0000.01117.74
8.1.10.0030.00917.75
8.1.00.0000.01117.67
8.0.300.0000.01218.77
8.0.290.0000.01017.43
8.0.280.0000.01018.51
8.0.270.0000.01017.31
8.0.260.0040.00717.15
8.0.250.0030.00717.28
8.0.240.0070.00417.32
8.0.230.0070.00317.31
8.0.220.0000.01117.23
8.0.210.0070.00317.14
8.0.200.0070.00417.15
8.0.190.0030.00917.23
8.0.180.0070.00317.25
8.0.170.0030.00917.25
8.0.160.0030.00917.15
8.0.150.0030.00717.12
8.0.140.0000.01117.14
8.0.130.0000.01113.69
8.0.120.0030.00817.16
8.0.110.0030.00817.09
8.0.100.0040.00717.16
8.0.90.0060.00617.21
8.0.80.0030.01817.27
8.0.70.0070.00317.10
8.0.60.0060.00617.26
8.0.50.0000.01217.26
8.0.30.0060.01917.15
8.0.20.0130.01217.43
8.0.10.0000.01117.09
8.0.00.0140.01417.12
7.4.330.0000.00815.25
7.4.320.0000.00916.83
7.4.300.0030.00916.84
7.4.290.0060.00616.74
7.4.280.0000.01016.78
7.4.270.0000.01016.91
7.4.260.0040.00716.77
7.4.250.0050.00516.76
7.4.240.0050.00516.91
7.4.230.0070.00317.00
7.4.220.0100.02716.88
7.4.210.0080.01716.90
7.4.200.0030.00816.66
7.4.190.0000.01116.72
7.4.160.0030.02316.95
7.4.150.0090.01417.40
7.4.140.0140.01017.86
7.4.130.0070.01616.67
7.4.120.0120.01716.83
7.4.110.0100.01416.86
7.4.100.0090.01516.92
7.4.90.0030.02016.76
7.4.80.0150.00916.81
7.4.70.0080.01516.83
7.4.60.0090.01616.72
7.4.50.0000.01116.72
7.4.40.0070.00722.77
7.4.30.0070.01616.82
7.4.10.0070.01716.66
7.4.00.0080.01315.90
7.3.330.0040.00413.42
7.3.320.0060.00313.23
7.3.310.0040.00716.60
7.3.300.0030.00716.29
7.3.290.0030.01916.46
7.3.280.0060.01716.52
7.3.270.0100.01317.40
7.3.260.0160.01016.55
7.3.250.0080.01716.65
7.3.240.0070.01716.45
7.3.230.0100.01316.73
7.3.210.0130.01316.68
7.3.200.0140.01519.39
7.3.190.0200.01316.72
7.3.180.0070.01516.63
7.3.170.0070.02516.51
7.3.160.0200.01316.63
7.3.130.0000.01516.64
7.3.120.0050.01615.76
7.3.110.0030.01716.39
7.3.100.0100.01016.51
7.3.90.0060.01416.33
7.3.80.0070.00716.33
7.3.70.0070.01016.49
7.3.60.0100.01316.46
7.3.50.0060.01816.52
7.3.40.0110.00416.51
7.3.30.0170.01316.40
7.3.20.0070.01418.26
7.3.10.0150.00718.51
7.3.00.0190.01918.45
7.2.330.0100.02016.83
7.2.320.0040.02016.75
7.2.310.0100.01416.84
7.2.300.0140.01017.02
7.2.290.0070.01516.68
7.2.260.0000.02416.79
7.2.250.0090.01616.78
7.2.240.0090.00916.85
7.2.230.0070.01016.79
7.2.220.0100.00716.70
7.2.210.0070.01016.76
7.2.200.0030.01616.63
7.2.190.0090.01716.74
7.2.180.0000.01816.84
7.2.170.0000.01616.80
7.2.160.0100.00616.86
7.2.150.0150.00718.64
7.2.140.0170.02018.58
7.2.130.0150.02318.62
7.2.120.0150.01918.64
7.2.110.0070.02518.53
7.2.100.0200.01218.53
7.2.90.0150.02218.70
7.2.80.0160.02018.57
7.2.70.0160.02218.67
7.2.60.0180.01818.59
7.2.50.0120.02718.62
7.2.40.0230.01518.59
7.2.30.0200.01718.70
7.2.20.0300.00618.47
7.2.10.0140.02218.71
7.2.00.0040.02419.06
7.1.330.0030.01617.53
7.1.320.0040.01217.73
7.1.310.0000.02117.68
7.1.300.0060.00917.48
7.1.290.0070.02117.50
7.1.280.0040.01217.41
7.1.270.0130.01317.55
7.1.260.0100.02317.63
7.1.250.0150.01817.60
7.1.240.0190.01417.62
7.1.230.0110.01917.68
7.1.220.0130.02017.51
7.1.210.0130.02517.58
7.1.200.0120.02417.70
7.1.190.0180.01517.46
7.1.180.0180.01817.70
7.1.170.0180.01817.38
7.1.160.0140.02117.35
7.1.150.0190.00817.55
7.1.140.0150.01917.53
7.1.130.0200.01617.61
7.1.120.0220.01217.61
7.1.110.0170.02017.48
7.1.100.0070.01617.89
7.1.90.0150.02017.58
7.1.80.0150.02217.51
7.1.70.0080.01617.54
7.1.60.0140.01718.46
7.1.50.0070.01817.49
7.1.40.0120.02417.72
7.1.30.0170.02017.65
7.1.20.0220.01417.68
7.1.10.0170.01717.79
7.1.00.0090.04919.98
7.0.330.0190.01617.39
7.0.320.0190.01117.20
7.0.310.0200.01617.21
7.0.300.0080.02017.18
7.0.290.0200.01617.20
7.0.280.0150.02117.39
7.0.270.0070.02517.10
7.0.260.0130.02217.32
7.0.250.0100.02017.38
7.0.240.0160.01317.21
7.0.230.0150.01517.44
7.0.220.0140.01717.32
7.0.210.0080.02717.15
7.0.200.0100.01317.14
7.0.190.0160.02017.20
7.0.180.0130.02317.30
7.0.170.0170.02017.28
7.0.160.0180.00917.41
7.0.150.0180.01817.33
7.0.140.0090.04919.58
7.0.130.0150.02217.27
7.0.120.0090.02117.16
7.0.110.0150.01217.23
7.0.100.0250.02718.60
7.0.90.0250.04818.70
7.0.80.0260.03318.71
7.0.70.0270.04918.58
7.0.60.0280.04818.62
7.0.50.0270.05318.78
7.0.40.0130.05417.65
7.0.30.0070.06417.59
7.0.20.0100.06517.58
7.0.10.0090.05417.66
7.0.00.0170.05317.63
5.6.400.0150.03916.24
5.6.390.0160.04016.05
5.6.380.0180.04115.99
5.6.370.0120.04516.14
5.6.360.0230.03315.98
5.6.350.0110.04615.78
5.6.340.0110.04515.80
5.6.330.0140.04415.82
5.6.320.0240.03715.89
5.6.310.0150.04515.98
5.6.300.0110.04716.05
5.6.290.0190.03515.95
5.6.280.0070.07218.54
5.6.270.0170.04115.76
5.6.260.0200.04115.94
5.6.250.0190.05918.41
5.6.240.0130.07018.27
5.6.230.0110.07218.34
5.6.220.0100.06918.21
5.6.210.0090.05518.20
5.6.200.0120.07518.47
5.6.190.0110.07518.45
5.6.180.0100.05418.53
5.6.170.0090.05418.50
5.6.160.0110.07218.47
5.6.150.0080.07418.52
5.6.140.0110.05418.47
5.6.130.0160.05118.60
5.6.120.0130.07018.43
5.6.110.0140.06918.43
5.6.100.0140.07118.51
5.6.90.0070.06718.51
5.6.80.0120.10918.12
5.6.70.0160.10518.03
5.6.60.0120.07618.17
5.6.50.0080.11018.20
5.6.40.0100.10618.10
5.6.30.0050.10618.04
5.6.20.0090.09118.14
5.6.10.0120.11218.19
5.6.00.0120.08818.19
5.5.380.0130.07818.16
5.5.370.0150.05018.04
5.5.360.0100.07318.24
5.5.350.0100.05818.17
5.5.340.0100.08018.34
5.5.330.0150.06618.22
5.5.320.0080.07718.36
5.5.310.0080.07118.38
5.5.300.0120.07418.16
5.5.290.0100.06718.33
5.5.280.0110.06618.35
5.5.270.0100.05218.44
5.5.260.0070.07118.18
5.5.250.0070.07118.28
5.5.240.0120.10517.93
5.5.230.0070.08217.90
5.5.220.0130.10117.89
5.5.210.0100.10117.95
5.5.200.0140.09918.00
5.5.190.0110.11117.94
5.5.180.0090.11017.98
5.5.170.0100.07315.68
5.5.160.0140.10817.96
5.5.150.0100.10517.97
5.5.140.0080.09817.98
5.5.130.0140.10818.08
5.5.120.0110.08018.03
5.5.110.0140.09618.05
5.5.100.0050.08317.94
5.5.90.0080.07117.97
5.5.80.0120.06618.03
5.5.70.0040.07617.95
5.5.60.0050.07317.96
5.5.50.0080.07817.95
5.5.40.0070.07618.00
5.5.30.0050.07517.99
5.5.20.0100.07217.94
5.5.10.0070.07317.94
5.5.00.0110.07217.91
5.4.450.0080.07215.92
5.4.440.0100.07116.09
5.4.430.0080.06216.06
5.4.420.0070.06916.15
5.4.410.0130.04616.00
5.4.400.0050.07515.83
5.4.390.0090.09315.88
5.4.380.0070.10715.82
5.4.370.0050.07415.86
5.4.360.0130.08315.91
5.4.350.0070.08115.76
5.4.340.0020.07415.84
5.4.330.0100.06612.56
5.4.320.0110.09215.85
5.4.310.0120.08115.66
5.4.300.0020.07315.83
5.4.290.0110.08515.77
5.4.280.0100.10615.86
5.4.270.0060.09015.82
5.4.260.0050.07315.78
5.4.250.0110.06615.74
5.4.240.0080.07415.77
5.4.230.0090.06115.76
5.4.220.0020.07215.80
5.4.210.0100.06015.95
5.4.200.0050.06515.79
5.4.190.0080.06515.87
5.4.180.0110.07315.74
5.4.170.0080.06715.77
5.4.160.0120.06315.88
5.4.150.0080.07215.89
5.4.140.0050.07214.43
5.4.130.0100.05014.44
5.4.120.0050.04214.46
5.4.110.0050.04414.56
5.4.100.0000.04614.46
5.4.90.0050.04414.61
5.4.80.0050.04514.48
5.4.70.0040.04614.51
5.4.60.0070.04314.48
5.4.50.0050.04514.50
5.4.40.0050.04514.50
5.4.30.0050.04814.49
5.4.20.0050.05714.45
5.4.10.0070.04614.41
5.4.00.0070.04414.22
5.3.290.0080.08013.90
5.3.280.0070.06713.77
5.3.270.0050.10013.88
5.3.260.0050.10813.79
5.3.250.0080.10513.78
5.3.240.0080.09413.66
5.3.230.0060.05213.80
5.3.220.0070.04413.75
5.3.210.0060.04213.74
5.3.200.0090.04013.77
5.3.190.0120.04013.78
5.3.180.0090.04313.74
5.3.170.0080.04413.89
5.3.160.0060.04513.86
5.3.150.0070.04713.83
5.3.140.0050.04513.74
5.3.130.0050.05513.67
5.3.120.0070.04713.70
5.3.110.0050.04613.74
5.3.100.0060.04413.66
5.3.90.0050.04213.56
5.3.80.0030.04713.56
5.3.70.0070.05213.45
5.3.60.0050.03313.50
5.3.50.0120.04413.44
5.3.40.0050.03913.33
5.3.30.0140.04413.34
5.3.20.0090.05813.33
5.3.10.0070.05013.13
5.3.00.0040.03613.24
5.2.170.0030.07011.21
5.2.160.0100.06311.17
5.2.150.0100.06711.14
5.2.140.0000.03311.18
5.2.130.0100.06310.96
5.2.120.0030.03011.11
5.2.110.0100.06311.06
5.2.100.0130.04711.18
5.2.90.0070.06311.11
5.2.80.0100.05011.18
5.2.70.0070.06311.09
5.2.60.0130.07311.07
5.2.50.0070.04711.09
5.2.40.0070.07010.88
5.2.30.0070.08310.85
5.2.20.0070.06710.93
5.2.10.0030.07710.80
5.2.00.0070.07710.78
5.1.60.0030.05710.09
5.1.50.0000.1179.87
5.1.40.0030.11710.06
5.1.30.0030.07010.43
5.1.20.0130.10310.46
5.1.10.0030.11310.09
5.1.00.0030.11710.10
5.0.50.0070.1208.59
5.0.40.0030.0408.51
5.0.30.0100.0808.51
5.0.20.0030.0808.51
5.0.10.0030.0478.51
5.0.00.0100.0978.51
4.4.90.0100.0538.51
4.4.80.0000.0538.51
4.4.70.0000.0838.51
4.4.60.0030.0808.51
4.4.50.0000.0938.51
4.4.40.0100.0538.51
4.4.30.0030.0938.51
4.4.20.0000.0938.51
4.4.10.0070.1008.51
4.4.00.0030.1038.51
4.3.110.0000.0808.51
4.3.100.0030.0578.51
4.3.90.0030.0708.51
4.3.80.0100.0838.51
4.3.70.0030.0678.51
4.3.60.0000.0708.51
4.3.50.0000.0738.51
4.3.40.0030.0808.51
4.3.30.0000.0738.51
4.3.20.0000.0338.51
4.3.10.0030.0338.51
4.3.00.0000.0338.51

preferences:
44.22 ms | 400 KiB | 5 Q