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_OFFSET_CAPTURE ) { 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.0120.01518.41
8.3.50.0160.00522.03
8.3.40.0100.01019.04
8.3.30.0060.01419.14
8.3.20.0000.01020.20
8.3.10.0030.00721.93
8.3.00.0070.00320.76
8.2.180.0060.01318.41
8.2.170.0090.00922.96
8.2.160.0130.00719.24
8.2.150.0070.00324.18
8.2.140.0030.00724.66
8.2.130.0140.01026.16
8.2.120.0070.00419.73
8.2.110.0090.00322.36
8.2.100.0090.00620.01
8.2.90.0070.00419.32
8.2.80.0070.00718.05
8.2.70.0030.01018.00
8.2.60.0000.01117.91
8.2.50.0040.00718.07
8.2.40.0000.01118.34
8.2.30.0080.00318.12
8.2.20.0070.00418.05
8.2.10.0000.01118.10
8.2.00.0040.01118.14
8.1.280.0100.01725.92
8.1.270.0040.00722.19
8.1.260.0030.00726.35
8.1.250.0050.00528.09
8.1.240.0060.00623.83
8.1.230.0070.00719.00
8.1.220.0000.01117.91
8.1.210.0000.01118.77
8.1.200.0030.00917.50
8.1.190.0030.01117.64
8.1.180.0000.01118.62
8.1.170.0030.00918.69
8.1.160.0080.00322.13
8.1.150.0050.00518.92
8.1.140.0040.00717.72
8.1.130.0030.00718.01
8.1.120.0030.00817.64
8.1.110.0080.00317.68
8.1.100.0040.00717.57
8.1.90.0060.00617.57
8.1.80.0000.01017.65
8.1.70.0070.00317.58
8.1.60.0000.01117.84
8.1.50.0040.00717.73
8.1.40.0030.00917.58
8.1.30.0000.01217.87
8.1.20.0000.01117.90
8.1.10.0000.01117.64
8.1.00.0000.01117.63
8.0.300.0040.00718.77
8.0.290.0000.01117.41
8.0.280.0080.00318.58
8.0.270.0000.01017.41
8.0.260.0030.00617.06
8.0.250.0000.01017.26
8.0.240.0000.01217.26
8.0.230.0070.00317.29
8.0.220.0000.01017.12
8.0.210.0070.00417.12
8.0.200.0030.00717.25
8.0.190.0000.01117.30
8.0.180.0040.00817.27
8.0.170.0030.00917.23
8.0.160.0000.01117.18
8.0.150.0040.00717.11
8.0.140.0080.00317.09
8.0.130.0030.00613.64
8.0.120.0000.01117.12
8.0.110.0000.01117.20
8.0.100.0030.00917.21
8.0.90.0030.00917.04
8.0.80.0070.01417.11
8.0.70.0000.01117.13
8.0.60.0030.00817.35
8.0.50.0040.00717.24
8.0.30.0040.02117.31
8.0.20.0110.01417.40
8.0.10.0030.00917.23
8.0.00.0080.01717.02
7.4.330.0040.00415.10
7.4.320.0000.01016.87
7.4.300.0030.00616.83
7.4.290.0000.01016.93
7.4.280.0000.01016.75
7.4.270.0030.00616.93
7.4.260.0040.00716.90
7.4.250.0030.01016.88
7.4.240.0030.00816.89
7.4.230.0070.00316.74
7.4.220.0040.02516.94
7.4.210.0060.01516.80
7.4.200.0080.00316.84
7.4.190.0030.00717.01
7.4.160.0060.01616.91
7.4.150.0030.02117.40
7.4.140.0090.01917.86
7.4.130.0130.01616.71
7.4.120.0120.01116.74
7.4.110.0090.01616.72
7.4.100.0120.01516.63
7.4.90.0160.01216.77
7.4.80.0060.01919.39
7.4.70.0130.01316.58
7.4.60.0090.01416.83
7.4.50.0030.00616.84
7.4.40.0060.01322.77
7.4.30.0070.01716.75
7.4.00.0070.00715.29
7.3.330.0040.00413.21
7.3.320.0030.00613.28
7.3.310.0040.00716.44
7.3.300.0000.01016.50
7.3.290.0070.01416.59
7.3.280.0040.02016.51
7.3.270.0060.01817.40
7.3.260.0030.02216.48
7.3.250.0100.01516.63
7.3.240.0000.02316.79
7.3.230.0090.01516.55
7.3.210.0060.02216.63
7.3.200.0130.01919.39
7.3.190.0100.02216.55
7.3.180.0110.01116.34
7.3.170.0070.01616.91
7.3.160.0100.01316.63
7.3.120.0030.01715.05
7.2.330.0140.01016.86
7.2.320.0070.01716.85
7.2.310.0190.00616.77
7.2.300.0060.01616.79
7.2.290.0130.00917.06
7.2.00.0070.01319.79
7.1.100.0040.01518.28
7.1.70.0030.01017.34
7.1.60.0030.03119.82
7.1.50.0040.01117.49
7.1.00.0070.10022.50
7.0.200.0090.00916.71
7.0.140.0100.07322.13
7.0.60.0230.08320.00
7.0.50.0070.09717.89
7.0.40.0070.09320.11
7.0.30.0500.04720.40
7.0.20.0070.05720.18
7.0.10.0070.05020.23
7.0.00.0270.05320.07
5.6.280.0000.10020.82
5.6.210.0130.10720.69
5.6.200.0070.06318.17
5.6.190.0170.10320.46
5.6.180.3530.06020.41
5.6.170.0300.10320.52
5.6.160.0200.09720.39
5.6.150.0070.10018.23
5.6.140.0030.10718.17
5.6.130.0070.09318.19
5.6.120.0070.10021.11
5.6.110.0070.10720.98
5.6.100.0070.08720.98
5.6.90.0270.07321.07
5.6.80.0130.10020.39
5.6.70.3770.09020.50
5.5.350.0130.09320.33
5.5.340.0030.08017.96
5.5.330.0000.06020.16
5.5.320.3600.05320.36
5.5.310.0430.08320.29
5.5.300.0070.10717.96
5.5.290.0070.06318.02
5.5.280.0170.10320.80
5.5.270.0100.11720.80
5.5.260.0100.10020.88
5.5.250.0030.10720.58
5.5.240.0270.13320.27
5.4.450.0600.08319.50
5.4.440.0530.07319.48
5.4.430.0100.07719.50
5.4.420.0500.08019.28
5.4.410.0600.08019.52
5.4.400.1500.00018.63
5.4.390.1470.00018.72
5.4.380.0100.12018.71
5.4.370.0700.11318.70
5.4.360.0800.11018.64
5.4.350.0730.12718.68
5.4.340.0800.10718.72
5.4.320.0080.08212.48
5.4.310.0070.08312.48
5.4.300.0090.07712.48
5.4.290.0090.08612.49
5.4.280.0070.09112.38
5.4.270.0110.07912.38
5.4.260.0000.11719.02
5.4.250.0070.11018.75
5.4.240.0230.10718.94
5.4.230.0070.11718.82
5.4.220.0030.12018.68
5.4.210.0070.12718.80
5.4.200.0130.10718.92
5.4.190.0100.11018.67
5.4.180.0130.13318.72
5.4.170.0100.12318.90
5.4.160.0100.10718.71
5.4.150.0070.12018.91
5.4.140.0130.11016.23
5.4.130.0130.08316.21
5.4.120.0030.11016.42
5.4.110.0130.06316.27
5.4.100.0100.07316.37
5.4.90.0070.07316.23
5.4.80.0030.08016.47
5.4.70.0130.07316.50
5.4.60.0030.07716.54
5.4.50.0130.06716.30
5.4.40.0130.10016.31
5.4.30.0070.07316.20
5.4.20.0000.08016.48
5.4.10.0000.08316.25
5.4.00.0130.06315.70
5.3.290.0090.08112.80
5.3.280.0100.10714.63
5.3.270.0100.16714.52
5.3.260.0100.15714.64
5.3.250.0100.15014.72
5.3.240.0030.16714.50
5.3.230.0200.07714.66
5.3.220.0170.11014.50
5.3.210.0030.12314.60
5.3.200.0000.08014.38
5.3.190.0070.07714.65
5.3.180.0070.09014.61
5.3.170.0070.07714.65
5.3.160.0130.07014.65
5.3.150.0030.09014.66
5.3.140.0070.07314.37
5.3.130.0070.09714.61
5.3.120.0070.08014.60
5.3.110.0100.08014.61
5.3.100.0030.08014.00
5.3.90.0030.07713.93
5.3.80.0130.10314.05
5.3.70.0000.08013.81
5.3.60.0030.05713.72
5.3.50.0100.05013.98
5.3.40.0070.05714.01
5.3.30.0100.05713.85
5.3.20.0070.05313.75
5.3.10.0130.05013.66
5.3.00.0100.05713.67
5.2.170.0030.05011.18
5.2.160.0030.05011.00
5.2.150.0000.05311.05
5.2.140.0030.05311.32
5.2.130.0000.05311.14
5.2.120.0030.04711.05
5.2.110.0100.05011.27
5.2.100.0030.07011.05
5.2.90.0070.06711.00
5.2.80.0070.05311.11
5.2.70.0000.05711.13
5.2.60.0100.08711.18
5.2.50.0030.09011.05
5.2.40.0000.08710.95
5.2.30.0000.06310.92
5.2.20.0170.05311.00
5.2.10.0030.06011.03
5.2.00.0070.05710.82
5.1.60.0100.08310.09
5.1.50.0030.09310.05
5.1.40.0030.0909.90
5.1.30.0030.08710.37
5.1.20.0030.10010.29
5.1.10.0070.09710.34
5.1.00.0070.09710.07
5.0.50.0070.0908.81
5.0.40.0030.0608.21
5.0.30.0070.0708.40
5.0.20.0030.0608.45
5.0.10.0070.0678.26
5.0.00.0030.0738.27
4.4.90.0070.1076.42
4.4.80.0070.0836.42
4.4.70.0100.1106.42
4.4.60.0200.0906.42
4.4.50.0100.0676.42
4.4.40.0030.0836.42
4.4.30.0070.0706.42
4.4.20.0000.0976.42
4.4.10.0030.1176.42
4.4.00.0030.1036.42
4.3.110.0070.0876.42
4.3.100.0030.0506.42
4.3.90.0030.0536.42
4.3.80.0070.0606.42
4.3.70.0030.0506.42
4.3.60.0000.0576.42
4.3.50.0070.0506.42
4.3.40.0000.0706.42
4.3.30.0030.0736.42
4.3.20.0070.0176.42
4.3.10.0000.0236.42
4.3.00.0030.0207.10

preferences:
45.76 ms | 401 KiB | 5 Q