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_INTERNAL_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.0000.01918.55
8.3.50.0130.01522.30
8.3.40.0130.00619.05
8.3.30.0090.00919.11
8.3.20.0000.01020.46
8.3.10.0030.00721.96
8.3.00.0100.00020.74
8.2.180.0100.01016.48
8.2.170.0070.01122.96
8.2.160.0100.01019.34
8.2.150.0070.00424.18
8.2.140.0030.00724.66
8.2.130.0130.01026.16
8.2.120.0030.00719.73
8.2.110.0040.00822.27
8.2.100.0090.00619.89
8.2.90.0000.01119.30
8.2.80.0040.00718.15
8.2.70.0090.00318.00
8.2.60.0000.01118.29
8.2.50.0040.00818.07
8.2.40.0090.00320.01
8.2.30.0000.01218.23
8.2.20.0030.00818.09
8.2.10.0000.01118.14
8.2.00.0070.00717.94
8.1.280.0100.01725.92
8.1.270.0000.01022.18
8.1.260.0030.00726.35
8.1.250.0030.00728.09
8.1.240.0140.01118.91
8.1.230.0030.01018.99
8.1.220.0030.00917.91
8.1.210.0000.01218.77
8.1.200.0070.00717.59
8.1.190.0040.00817.68
8.1.180.0050.00518.81
8.1.170.0090.00318.96
8.1.160.0000.01022.29
8.1.150.0040.00718.78
8.1.140.0040.00717.63
8.1.130.0030.00717.85
8.1.120.0000.01017.66
8.1.110.0040.00717.50
8.1.100.0040.00717.49
8.1.90.0050.00517.69
8.1.80.0060.00617.70
8.1.70.0000.01017.67
8.1.60.0040.00817.79
8.1.50.0000.01217.74
8.1.40.0000.01117.70
8.1.30.0000.01117.82
8.1.20.0050.00517.73
8.1.10.0040.00817.62
8.1.00.0030.00817.58
8.0.300.0030.00718.77
8.0.290.0000.01117.43
8.0.280.0040.00718.59
8.0.270.0080.00317.32
8.0.260.0070.00317.21
8.0.250.0070.00317.29
8.0.240.0050.00517.18
8.0.230.0000.01017.31
8.0.220.0030.00717.09
8.0.210.0040.00717.24
8.0.200.0030.00717.29
8.0.190.0060.00617.20
8.0.180.0000.01017.29
8.0.170.0060.00617.29
8.0.160.0090.00317.12
8.0.150.0040.00717.09
8.0.140.0040.00717.07
8.0.130.0030.00613.73
8.0.120.0030.00917.26
8.0.110.0000.01117.26
8.0.100.0000.01317.17
8.0.90.0030.00917.11
8.0.80.0060.01817.12
8.0.70.0040.00717.18
8.0.60.0050.00517.29
8.0.50.0040.00717.03
8.0.30.0050.02817.38
8.0.20.0120.01317.40
8.0.10.0000.01117.22
8.0.00.0130.01816.95
7.4.330.0030.00615.19
7.4.320.0040.00716.95
7.4.300.0000.00916.79
7.4.290.0070.00316.76
7.4.280.0070.00416.93
7.4.270.0030.00716.91
7.4.260.0030.00716.68
7.4.250.0040.00716.91
7.4.240.0010.01016.90
7.4.230.0030.00716.91
7.4.220.0090.01616.96
7.4.210.0060.01616.86
7.4.200.0000.01016.73
7.4.190.0050.00516.90
7.4.160.0070.01516.96
7.4.150.0030.02017.40
7.4.140.0050.02017.86
7.4.130.0090.01516.86
7.4.120.0090.01616.90
7.4.110.0060.01816.99
7.4.100.0120.01316.81
7.4.90.0070.02216.78
7.4.80.0070.01819.39
7.4.70.0170.01416.67
7.4.60.0130.01316.64
7.4.50.0030.01216.62
7.4.40.0000.02022.77
7.4.30.0170.00616.77
7.4.00.0110.01015.25
7.3.330.0030.00613.25
7.3.320.0000.00913.30
7.3.310.0060.00616.34
7.3.300.0000.01016.35
7.3.290.0080.01716.52
7.3.280.0080.01816.50
7.3.270.0030.02017.40
7.3.260.0130.01316.57
7.3.250.0160.01116.53
7.3.240.0160.00616.59
7.3.230.0110.01416.72
7.3.210.0160.02016.82
7.3.200.0100.01319.39
7.3.190.0030.02916.54
7.3.180.0120.00916.36
7.3.170.0060.01516.57
7.3.160.0070.01716.60
7.3.120.0070.01114.98
7.2.330.0100.01416.79
7.2.320.0090.01616.88
7.2.310.0090.01516.82
7.2.300.0060.01616.94
7.2.290.0030.02016.74
7.2.00.0090.00919.86
7.1.100.0000.01718.68
7.1.70.0100.00317.44
7.1.60.0100.02119.82
7.1.50.0000.01917.45
7.1.00.0070.08022.37
7.0.200.0030.01316.67
7.0.140.0230.06322.14
7.0.60.0030.10319.92
7.0.50.0200.08017.94
7.0.40.0030.06020.49
7.0.30.0270.06320.40
7.0.20.0230.05320.36
7.0.10.0230.08020.16
7.0.00.0130.09020.23
5.6.280.0170.08321.12
5.6.210.0130.09720.62
5.6.200.0030.07018.16
5.6.190.0070.10320.28
5.6.180.4230.05020.59
5.6.170.0300.07720.46
5.6.160.0130.07020.39
5.6.150.0070.08718.06
5.6.140.0130.09018.18
5.6.130.0100.07718.12
5.6.120.0070.06020.96
5.6.110.0130.08320.97
5.6.100.0130.08321.11
5.6.90.0030.06020.88
5.6.80.0030.14020.50
5.6.70.4500.08720.37
5.5.350.0030.08320.42
5.5.340.0130.09017.96
5.5.330.0070.11020.20
5.5.320.0170.05320.29
5.5.310.0300.09320.22
5.5.300.0070.06018.00
5.5.290.0000.06018.02
5.5.280.0030.05720.68
5.5.270.0100.05720.64
5.5.260.0100.10320.79
5.5.250.0230.09320.62
5.5.240.0030.10020.23
5.4.450.0500.07319.63
5.4.440.0800.07719.49
5.4.430.0500.07719.54
5.4.420.0530.07719.55
5.4.410.0370.08019.36
5.4.400.2070.00018.64
5.4.390.2270.00018.48
5.4.380.0270.12018.60
5.4.370.0970.10318.51
5.4.360.0900.11018.48
5.4.350.0900.10718.55
5.4.340.0700.12318.68
5.4.320.0100.08712.48
5.4.310.0080.08412.48
5.4.300.0070.08112.49
5.4.290.0100.08412.48
5.4.280.0070.08112.38
5.4.270.0090.08312.38
5.4.260.0070.11318.82
5.4.250.0170.10318.79
5.4.240.0130.11318.75
5.4.230.0170.10719.05
5.4.220.0170.11719.03
5.4.210.0130.10319.05
5.4.200.0170.11318.93
5.4.190.0100.11018.96
5.4.180.0070.11018.89
5.4.170.0200.15019.03
5.4.160.0070.11318.88
5.4.150.0130.11318.95
5.4.140.0130.10316.22
5.4.130.0000.09316.19
5.4.120.0100.08316.23
5.4.110.0130.06716.46
5.4.100.0100.08016.25
5.4.90.0070.08016.42
5.4.80.0070.08016.20
5.4.70.0200.06316.29
5.4.60.0170.10716.43
5.4.50.0130.07716.49
5.4.40.0200.10316.54
5.4.30.0100.09316.54
5.4.20.0230.06716.36
5.4.10.0100.07716.48
5.4.00.0070.07715.80
5.3.290.0040.08712.80
5.3.280.0170.10314.39
5.3.270.0070.15314.54
5.3.260.0100.15014.40
5.3.250.0070.16014.67
5.3.240.0100.14714.65
5.3.230.0070.08014.62
5.3.220.0100.09714.38
5.3.210.0000.08014.61
5.3.200.0170.10314.66
5.3.190.0100.07714.61
5.3.180.0030.08714.47
5.3.170.0170.10714.70
5.3.160.0200.07714.60
5.3.150.0100.08014.44
5.3.140.0100.08314.61
5.3.130.0130.07314.36
5.3.120.0070.09314.47
5.3.110.0100.08314.57
5.3.100.0200.09014.13
5.3.90.0200.09314.05
5.3.80.0070.11313.98
5.3.70.0070.10314.04
5.3.60.0130.05313.88
5.3.50.0130.05313.98
5.3.40.0030.06713.74
5.3.30.0070.07313.63
5.3.20.0000.06013.55
5.3.10.0100.07013.66
5.3.00.0100.05313.52
5.2.170.0030.05011.18
5.2.160.0130.03711.09
5.2.150.0100.06011.18
5.2.140.0030.05311.27
5.2.130.0100.04011.13
5.2.120.0070.04311.04
5.2.110.0000.05011.12
5.2.100.0070.04310.88
5.2.90.0070.04711.05
5.2.80.0030.07011.12
5.2.70.0130.06710.94
5.2.60.0030.06011.22
5.2.50.0070.08710.96
5.2.40.0070.05711.03
5.2.30.0100.08311.02
5.2.20.0000.06310.82
5.2.10.0000.06010.88
5.2.00.0030.05710.63
5.1.60.0000.12010.09
5.1.50.0070.0839.99
5.1.40.0100.1509.89
5.1.30.0030.10310.45
5.1.20.0170.09710.47
5.1.10.0070.1379.99
5.1.00.0070.10710.12
5.0.50.0070.0908.73
5.0.40.0000.0638.50
5.0.30.0070.1038.45
5.0.20.0030.0638.25
5.0.10.0070.0578.43
5.0.00.0070.1038.02
4.4.90.0030.0776.52
4.4.80.0030.1136.52
4.4.70.0030.0806.52
4.4.60.0030.1136.52
4.4.50.0000.0876.52
4.4.40.0030.0936.52
4.4.30.0000.0776.52
4.4.20.0030.0936.52
4.4.10.0030.0906.52
4.4.00.0000.1136.52
4.3.110.0000.0676.52
4.3.100.0030.0736.52
4.3.90.0030.0806.52
4.3.80.0000.0676.52
4.3.70.0030.0806.52
4.3.60.0000.0876.52
4.3.50.0000.0606.52
4.3.40.0030.0636.52
4.3.30.0000.0976.52
4.3.20.0000.0236.52
4.3.10.0000.0236.52
4.3.00.0070.0237.10

preferences:
52.94 ms | 401 KiB | 5 Q