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 ); var_dump( preg_last_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.0060.01318.68
8.3.50.0050.01821.99
8.3.40.0000.01919.04
8.3.30.0100.01019.09
8.3.20.0030.00620.13
8.3.10.0030.00722.10
8.3.00.0030.00720.77
8.2.180.0130.00918.28
8.2.170.0070.01322.96
8.2.160.0040.01619.21
8.2.150.0070.00324.18
8.2.140.0030.00724.66
8.2.130.0140.01026.16
8.2.120.0050.00519.73
8.2.110.0040.00722.43
8.2.100.0100.01018.03
8.2.90.0080.00419.23
8.2.80.0000.01117.97
8.2.70.0030.01017.75
8.2.60.0060.00617.93
8.2.50.0040.00718.07
8.2.40.0040.00718.16
8.2.30.0000.01018.25
8.2.20.0040.00717.98
8.2.10.0030.00918.07
8.2.00.0100.00417.97
8.1.280.0140.01425.92
8.1.270.0070.00322.19
8.1.260.0030.00726.35
8.1.250.0070.00328.09
8.1.240.0070.00424.02
8.1.230.0050.01019.12
8.1.220.0030.00918.03
8.1.210.0060.00618.77
8.1.200.0030.01017.60
8.1.190.0070.00417.75
8.1.180.0080.00418.86
8.1.170.0060.00618.86
8.1.160.0070.00322.22
8.1.150.0040.00718.95
8.1.140.0070.00417.70
8.1.130.0000.01017.91
8.1.120.0080.00317.55
8.1.110.0000.01217.68
8.1.100.0080.00317.63
8.1.90.0040.00817.57
8.1.80.0000.01017.64
8.1.70.0070.00317.63
8.1.60.0040.00817.83
8.1.50.0030.00817.71
8.1.40.0000.01117.76
8.1.30.0060.00617.81
8.1.20.0080.00317.72
8.1.10.0000.01117.73
8.1.00.0040.00717.54
8.0.300.0040.00818.77
8.0.290.0040.00717.29
8.0.280.0040.00718.62
8.0.270.0040.00717.40
8.0.260.0030.00717.05
8.0.250.0000.01017.25
8.0.240.0030.00817.27
8.0.230.0000.01117.27
8.0.220.0040.00717.17
8.0.210.0030.00717.28
8.0.200.0030.00617.31
8.0.190.0040.00817.17
8.0.180.0000.01017.21
8.0.170.0000.01217.14
8.0.160.0030.00917.14
8.0.150.0040.00717.12
8.0.140.0040.00717.06
8.0.130.0030.00613.68
8.0.120.0060.00917.14
8.0.110.0040.00717.10
8.0.100.0040.00717.04
8.0.90.0000.01117.16
8.0.80.0100.01317.10
8.0.70.0000.01117.08
8.0.60.0060.00617.12
8.0.50.0060.00617.23
8.0.30.0100.02017.49
8.0.20.0110.01417.40
8.0.10.0030.00917.04
8.0.00.0120.01217.10
7.4.330.0030.00515.19
7.4.320.0000.01016.88
7.4.300.0070.00316.92
7.4.290.0030.00716.93
7.4.280.0000.01016.83
7.4.270.0030.00816.93
7.4.260.0040.00816.84
7.4.250.0060.00616.78
7.4.240.0060.00416.86
7.4.230.0040.00716.89
7.4.220.0100.01616.98
7.4.210.0080.01416.80
7.4.200.0040.00716.91
7.4.190.0000.01016.84
7.4.160.0030.02116.88
7.4.150.0130.01317.40
7.4.140.0120.01317.86
7.4.130.0060.01716.72
7.4.120.0090.01416.69
7.4.110.0070.02016.64
7.4.100.0140.01016.67
7.4.90.0130.01316.72
7.4.80.0000.02319.39
7.4.70.0060.02516.57
7.4.60.0030.01916.82
7.4.50.0040.00716.86
7.4.40.0110.01122.77
7.4.30.0070.01616.79
7.4.00.0040.01715.29
7.3.330.0000.00913.29
7.3.320.0040.00413.33
7.3.310.0040.00716.43
7.3.300.0030.00716.46
7.3.290.0100.01016.50
7.3.280.0090.01316.43
7.3.270.0140.00817.40
7.3.260.0100.01316.46
7.3.250.0110.01416.61
7.3.240.0130.01016.74
7.3.230.0110.01416.54
7.3.210.0120.01216.40
7.3.200.0130.00916.66
7.3.190.0130.01916.55
7.3.180.0130.01016.67
7.3.170.0030.02016.80
7.3.160.0090.01216.41
7.3.120.0090.01415.10
7.3.110.0080.01514.91
7.3.100.0070.01214.98
7.3.90.0040.01115.14
7.3.80.0020.01114.97
7.3.70.0050.01314.89
7.3.60.0030.01515.07
7.3.50.0050.01314.89
7.3.40.0000.01715.04
7.3.30.0030.01514.99
7.3.20.0030.01216.72
7.3.10.0040.01616.69
7.3.00.0100.01016.72
7.2.330.0090.01516.71
7.2.320.0060.01716.67
7.2.310.0190.01316.79
7.2.300.0060.01616.73
7.2.290.0040.01916.74
7.2.250.0050.01915.24
7.2.240.0050.02315.17
7.2.230.0070.01215.12
7.2.220.0080.00815.17
7.2.210.0080.01315.34
7.2.200.0100.00815.31
7.2.190.0040.02015.18
7.2.180.0090.01015.32
7.2.170.0050.01515.28
7.2.160.0000.01815.11
7.2.150.0000.01317.07
7.2.140.0030.02217.08
7.2.130.0090.00917.09
7.2.120.0000.02016.89
7.2.110.0030.00916.96
7.2.100.0000.01516.96
7.2.90.0100.01017.09
7.2.80.0030.01517.17
7.2.70.0100.00617.29
7.2.60.0070.01317.21
7.2.50.0040.01117.27
7.2.40.0060.01317.29
7.2.30.0070.00717.16
7.2.20.0030.01517.24
7.2.10.0030.01517.16
7.2.00.0020.01618.53
7.1.330.0080.01115.97
7.1.320.0050.01416.18
7.1.310.0040.01415.92
7.1.300.0020.01716.15
7.1.290.0020.01515.97
7.1.280.0050.01415.96
7.1.270.0040.01615.91
7.1.260.0100.00815.91
7.1.250.0060.01016.12
7.1.240.0030.01315.73
7.1.230.0030.01315.83
7.1.220.0040.01416.05
7.1.210.0070.01015.95
7.1.200.0000.01516.21
7.1.190.0080.00815.80
7.1.180.0100.00615.90
7.1.170.0030.01315.97
7.1.160.0000.01916.00
7.1.150.0040.01415.90
7.1.140.0040.01116.09
7.1.130.0090.00916.02
7.1.120.0070.01315.84
7.1.110.0000.01916.07
7.1.100.0010.01417.21
7.1.90.0000.01216.02
7.1.80.0070.01015.95
7.1.70.0030.00916.55
7.1.60.0050.01817.98
7.1.50.0070.01216.57
7.1.40.0030.01316.09
7.1.30.0070.01415.99
7.1.20.0030.01215.71
7.1.10.0070.01016.02
7.1.00.0070.05219.26
7.0.330.0000.01915.75
7.0.320.0060.01215.35
7.0.310.0000.01815.73
7.0.300.0070.01415.85
7.0.290.0110.01115.45
7.0.280.0070.01015.83
7.0.270.0040.01415.49
7.0.260.0070.01015.71
7.0.250.0070.01015.64
7.0.240.0030.01615.85
7.0.230.0000.01215.91
7.0.220.0070.01015.91
7.0.210.0060.01215.51
7.0.200.0000.01416.24
7.0.190.0070.01315.68
7.0.180.0030.01315.45
7.0.170.0000.02215.33
7.0.160.0040.01415.68
7.0.150.0030.01715.75
7.0.140.0080.04318.86
7.0.130.0090.01215.84
7.0.120.0090.00915.72
7.0.110.0030.02115.63
7.0.100.0090.00915.73
7.0.90.0030.01315.83
7.0.80.0040.01415.49
7.0.70.0000.01215.61
7.0.60.0030.03117.96
7.0.50.0050.05116.85
7.0.40.0090.05316.89
7.0.30.0170.04016.90
7.0.20.0140.03716.85
7.0.10.0050.03916.86
7.0.00.0080.04816.81
5.6.400.0060.03514.41
5.6.390.0030.03414.57
5.6.380.0000.03614.61
5.6.370.0030.03614.17
5.6.360.0030.03814.70
5.6.350.0060.03114.43
5.6.340.0070.03414.59
5.6.330.0060.03514.53
5.6.320.0130.03214.81
5.6.310.0100.03514.18
5.6.300.0030.03514.23
5.6.290.0060.03614.32
5.6.280.0070.06717.72
5.6.270.0000.04114.43
5.6.260.0070.03914.22
5.6.250.0000.04214.51
5.6.240.0030.03614.18
5.6.230.0030.04014.45
5.6.220.0100.03514.50
5.6.210.0080.06417.57
5.6.200.0050.07316.37
5.6.190.0070.04317.42
5.6.180.0100.05117.58
5.6.170.0150.06317.35
5.6.160.0030.04917.28
5.6.150.0030.06616.26
5.6.140.0050.04516.28
5.6.130.0070.06016.42
5.6.120.0100.06817.79
5.6.110.0070.07217.81
5.6.100.0050.05017.67
5.6.90.0070.05417.59
5.6.80.0080.07717.48
5.6.70.0030.06714.01
5.6.60.0030.06314.23
5.6.50.0100.06514.09
5.6.40.0070.08014.22
5.6.30.0030.06214.18
5.6.20.0000.07914.39
5.6.10.0070.06313.97
5.6.00.0070.06314.12
5.5.380.0000.03814.23
5.5.370.0000.03614.28
5.5.360.0030.03814.25
5.5.350.0030.07417.46
5.5.340.0030.05216.04
5.5.330.0050.06417.29
5.5.320.0120.05417.31
5.5.310.0080.05517.34
5.5.300.0120.06616.06
5.5.290.0150.05016.17
5.5.280.0100.06517.65
5.5.270.0080.05817.48
5.5.260.0030.07617.43
5.5.250.0110.06917.20
5.5.240.0130.10617.19
5.5.230.0000.07513.93
5.5.220.0030.06614.20
5.5.210.0030.09414.19
5.5.200.0030.06813.99
5.5.190.0030.06913.81
5.5.180.0030.06513.99
5.5.170.0000.06814.08
5.5.160.0060.07214.24
5.5.150.0130.06414.19
5.5.140.0030.07214.32
5.5.130.0030.06514.12
5.5.120.0100.09214.23
5.5.110.0070.07314.05
5.5.100.0030.06314.32
5.5.90.0000.08114.00
5.5.80.0030.05114.10
5.5.70.0100.05314.38
5.5.60.0070.06014.29
5.5.50.0100.07613.94
5.5.40.0000.06114.12
5.5.30.0060.05514.25
5.5.20.0070.05714.13
5.5.10.0000.06113.91
5.5.00.0030.05314.28
5.4.450.0340.05916.33
5.4.440.0450.07416.37
5.4.430.0500.06116.19
5.4.420.0100.05916.39
5.4.410.0470.06016.26
5.4.400.0330.09416.09
5.4.390.0330.09916.15
5.4.380.0120.08815.93
5.4.370.0500.08015.84
5.4.360.0480.09115.90
5.4.350.0400.08415.96
5.4.340.0100.08315.94
5.4.330.0000.06313.16
5.4.320.0060.06812.82
5.4.310.0050.07012.82
5.4.300.0040.07212.82
5.4.290.0020.07312.82
5.4.280.0040.07512.77
5.4.270.0060.07212.77
5.4.260.0030.09216.06
5.4.250.0020.08416.04
5.4.240.0050.08916.04
5.4.230.0070.10016.09
5.4.220.0050.09116.11
5.4.210.0080.09516.11
5.4.200.0050.09716.04
5.4.190.0080.08216.10
5.4.180.0070.08416.06
5.4.170.0030.09715.99
5.4.160.0050.08416.08
5.4.150.0070.09316.04
5.4.140.0100.07914.72
5.4.130.0050.05814.80
5.4.120.0100.04814.80
5.4.110.0050.05214.80
5.4.100.0030.05714.80
5.4.90.0030.05514.71
5.4.80.0060.06914.83
5.4.70.0050.08014.68
5.4.60.0080.06014.78
5.4.50.0120.05314.75
5.4.40.0070.06214.80
5.4.30.0000.06014.82
5.4.20.0030.06414.75
5.4.10.0080.05814.80
5.4.00.0070.05514.43
5.3.290.0060.07012.98
5.3.280.0130.07513.90
5.3.270.0120.11913.92
5.3.260.0130.13713.74
5.3.250.0030.12113.94
5.3.240.0070.13013.90
5.3.230.0070.06413.90
5.3.220.0030.05413.84
5.3.210.0080.05113.90
5.3.200.0070.06313.89
5.3.190.0020.06813.94
5.3.180.0080.06313.80
5.3.170.0070.05413.80
5.3.160.0130.05913.88
5.3.150.0070.06213.89
5.3.140.0080.07113.81
5.3.130.0100.05013.80
5.3.120.0020.05813.95
5.3.110.0050.06013.87
5.3.100.0050.05413.63
5.3.90.0120.05613.53
5.3.80.0030.06413.61
5.3.70.0030.05413.63
5.3.60.0050.04413.66
5.3.50.0020.04113.61
5.3.40.0020.03813.54
5.3.30.0110.03813.55
5.3.20.0050.04413.32
5.3.10.0080.04513.42
5.3.00.0100.03413.42
5.2.170.0070.05011.00
5.2.160.0070.04711.18
5.2.150.0030.05311.18
5.2.140.0030.05311.15
5.2.130.0130.04711.04
5.2.120.0200.04711.04
5.2.110.0070.05011.12
5.2.100.0100.06011.05
5.2.90.0100.04011.03
5.2.80.0000.05011.02
5.2.70.0070.05311.13
5.2.60.0070.05711.07
5.2.50.0100.07710.92
5.2.40.0030.05711.03
5.2.30.0070.05711.02
5.2.20.0100.05310.89
5.2.10.0030.06010.81
5.2.00.0030.08010.91
5.1.60.0100.11310.27
5.1.50.0200.0809.97
5.1.40.0000.0979.78
5.1.30.0000.10010.29
5.1.20.0070.10710.39
5.1.10.0030.11010.02
5.1.00.0100.10010.17
5.0.50.0100.0838.82
5.0.40.0030.0608.21
5.0.30.0100.0708.29
5.0.20.0100.0578.27
5.0.10.0030.0638.29
5.0.00.0070.0678.19
4.4.90.0030.0776.42
4.4.80.0030.0806.42
4.4.70.0030.0736.42
4.4.60.0030.0936.42
4.4.50.0130.0676.42
4.4.40.0030.0876.42
4.4.30.0000.0876.42
4.4.20.0070.0806.42
4.4.10.0000.0836.42
4.4.00.0030.1006.42
4.3.110.0030.0506.42
4.3.100.0000.0536.42
4.3.90.0000.0776.42
4.3.80.0000.0736.42
4.3.70.0070.0536.42
4.3.60.0000.0576.42
4.3.50.0000.0606.42
4.3.40.0030.0676.42
4.3.30.0030.0606.42
4.3.20.0030.0206.42
4.3.10.0030.0206.42
4.3.00.0130.0208.11

preferences:
48.15 ms | 401 KiB | 5 Q