3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<!DOCTYPE html> <html class="html__responsive "> <head> <title>Stack Overflow - Where Developers Learn, Share, &amp; Build Careers</title> <link rel="shortcut icon" href="https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196"> <link rel="apple-touch-icon" href="https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a"> <link rel="image_src" href="https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a"> <link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="/opensearch.xml"> <meta name="description" content="Stack Overflow is the largest, most trusted online community for developers to learn, share&#x200B; &#x200B;their programming &#x200B;knowledge, and build their careers." /> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0"> <meta property="og:type" content="website" /> <meta property="og:url" content="https://stackoverflow.com/" /> <meta property="og:site_name" content="Stack Overflow" /> <meta property="og:image" itemprop="image primaryImageOfPage" content="https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon@2.png?v=73d79a89bded" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:domain" content="stackoverflow.com" /> <meta name="twitter:title" property="og:title" itemprop="name" content="Stack Overflow - Where Developers Learn, Share, &amp; Build Careers" /> <meta name="twitter:description" property="og:description" itemprop="description" content="Stack Overflow | The World&#x2019;s Largest Online Community for Developers" /> <script id="webpack-public-path" type="text/uri-list">https://cdn.sstatic.net/</script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script async src="https://cdn.sstatic.net/Js/third-party/stacks/stacks.min.js?v=636658ad2e24"></script> <script src="https://cdn.sstatic.net/Js/stub.en.js?v=263a43986782"></script> <link rel="stylesheet" type="text/css" href="https://cdn.sstatic.net/Shared/stacks.css?v=9b3c752346b4"> <link rel="stylesheet" type="text/css" href="https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=7b2b38645ccd"> <link rel="alternate" type="application/atom+xml" title="Feed of recent questions" href="/feeds"> <script defer src="https://cdn.sstatic.net/Js/home/index.en.js?v=3adaefc5f08a"></script> <link rel="stylesheet" type="text/css" href="https://cdn.sstatic.net/Shared/Channels/channels.css?v=b1915d2e6090"> <script> StackExchange.ready(function () { StackExchange.realtime.init("wss://qa.sockets.stackexchange.com"); StackExchange.realtime.subscribeToReputationNotifications("1"); StackExchange.realtime.subscribeToTopBarNotifications("1"); }); </script> <script type="application/json" data-role="module-args" data-module-name="Shared/options.mod">{"options":{"locale":"en","serverTime":1647615111,"routeName":"Home/Index","stackAuthUrl":"https://stackauth.com","networkMetaHostname":"meta.stackexchange.com","site":{"name":"Stack Overflow","description":"Q\u0026A for professional and enthusiast programmers","isNoticesTabEnabled":true,"enableNewTagCreationWarning":true,"insertSpaceAfterNameTabCompletion":false,"id":1,"cookieDomain":".stackoverflow.com","childUrl":"https://meta.stackoverflow.com","negativeVoteScoreFloor":null,"enableSocialMediaInSharePopup":true,"protocol":"https"},"timingsGuid":"256d4ea7-7e0e-41a3-a41c-9d940981162b","timingsInfo":"6icLEqFaKItiT8r3QQZiQajznGKP5//T31rutoKPL5aOm4RfEXNGaNWDXpORUr+RTyQfQOLZmUGSbIf2hrdbKYqAToAZoE4jXnafwxfx7DsVkt9f1empPFiba6RWhwKoWsfbc52X9b86tvZk6egEkDqv+xAUBDCTVFMf8uiiQX2RqfFC227p6rNRNdfbrdCqKXEClNsjxb9WtFksc+oWYw==","user":{"fkey":"237d59481aecf1aea67c50c971c0d1534d2bb32ac451a6d27a674e049adc8f9c","tid":"ab8b5050-9f69-c2b4-1158-a02b346c7c8d","rep":1311,"isRegistered":true,"userType":3,"userId":17873304,"accountId":15362631,"gravatar":"\u003cdiv class=\u0022gravatar-wrapper-32\u0022\u003e\u003cimg src=\u0022https://i.stack.imgur.com/VSesY.jpg?s=32\u0026amp;g=1\u0022 alt=\u0022\u0022 width=\u002232\u0022 height=\u002232\u0022 class=\u0022bar-sm\u0022\u003e\u003c/div\u003e","profileUrl":"https://stackoverflow.com/users/17873304/medilies","canSeeDeletedPosts":false,"ab":{"hot_questions_sidebar":{"v":"signupoptincopy","g":2}}},"realtime":{"newest":false,"active":false,"tagged":true,"staleDisconnectIntervalInHours":0},"events":{"postType":{"question":1},"postEditionSection":{"title":1,"body":2,"tags":3}},"story":{"minCompleteBodyLength":75,"likedTagsMaxLength":300,"dislikedTagsMaxLength":300},"jobPreferences":{"maxNumDeveloperRoles":2,"maxNumIndustries":4},"svgIconPath":"https://cdn.sstatic.net/Img/stacks-icons","svgIconHash":"cc5b3e0efea0"}}</script> <script type="application/json" data-role="module-args" data-module-name="Shared/settings.mod">{"settings":{"userProfile":{"openGraphAPIKey":"4a307e43-b625-49bb-af15-ffadf2bda017"},"userMessaging":{"showNewFeatureNotice":true},"tags":{},"subscriptions":{"defaultBasicMaxTrueUpSeats":250,"defaultFreemiumMaxTrueUpSeats":50,"defaultMaxTrueUpSeats":1000},"snippets":{"renderDomain":"stacksnippets.net","snippetsEnabled":true},"site":{"allowImageUploads":true,"enableImgurHttps":true,"enableUserHovercards":true,"forceHttpsImages":true,"styleCode":true},"questions":{"enableQuestionTitleLengthLiveWarning":true,"maxTitleSize":150,"questionTitleLengthStartLiveWarningChars":50},"intercom":{"appId":"inf0secd","hostBaseUrl":"https://stacksnippets.net"},"paths":{},"monitoring":{"clientTimingsAbsoluteTimeout":30000,"clientTimingsDebounceTimeout":1000},"mentions":{"maxNumUsersInDropdown":50},"markdown":{"enableTables":true},"legal":{"oneTrustConfigId":"c3d9f1e3-55f3-4eba-b268-46cee4c6789c"},"flags":{"allowRetractingCommentFlags":true,"allowRetractingFlags":true},"elections":{"opaVoteResultsBaseUrl":"https://www.opavote.com/results/"},"comments":{},"accounts":{"currentPasswordRequiredForChangingStackIdPassword":true}}}</script> <script>StackExchange.init();</script> <script> StackExchange.using.setCacheBreakers({ "js/adops.en.js": "6da43f5e0a84", "js/ask.en.js": "7ff9a9068fd6", "js/begin-edit-event.en.js": "dd955babf04d", "js/copy-transpiled.en.js": "6e17fb344f2c", "js/events.en.js": "", "js/explore-qlist.en.js": "2b1f34938b8b", "js/full-anon.en.js": "920cc57ec2ed", "js/full.en.js": "7dea62be7716", "js/highlightjs-loader.en.js": "3c37abf5cb6d", "js/inline-tag-editing.en.js": "c0cbc31e5702", "js/keyboard-shortcuts.en.js": "7de4e127b6af", "js/markdown-it-loader.en.js": "5818ef89ff9d", "js/moderator.en.js": "4989aaaca9f5", "js/postCollections-transpiled.en.js": "8126e59701f9", "js/post-validation.en.js": "09f528ac466a", "js/question-editor.en.js": "", "js/review-v2-transpiled.en.js": "d4e8ed8cd584", "js/revisions.en.js": "839f528889ff", "js/stacks-editor.en.js": "7c971287f03c", "js/tageditor.en.js": "825c9597ce2d", "js/tageditornew.en.js": "857acd8b77e4", "js/tagsuggestions.en.js": "1bcff7d98f97", "js/unlimited-transpiled.en.js": "7ed67670b600", "js/wmd.en.js": "0ccf559d0629", "js/snippet-javascript-codemirror.en.js": "73fce5cc7219" }); StackExchange.using("gps", function () { StackExchange.gps.init(true); }); </script> <noscript id="noscript-css"> <style> body, .top-bar { margin-top: 1.9em } </style> </noscript> </head>'; echo preg_replace('/\?v=[[:alnum:]]*/', '', $html);

Abusive script

This script was stopped while abusing our resources

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.130.0000.00818.49
8.3.120.0040.01520.62
8.3.110.0040.00416.75
8.3.100.0060.00318.59
8.3.90.0040.00426.77
8.3.80.0070.00318.40
8.3.70.0140.00716.88
8.3.60.0070.00716.63
8.3.50.0070.00720.28
8.3.40.0030.01218.97
8.3.30.0070.00719.17
8.3.20.0060.00324.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.240.0060.00319.12
8.2.230.0050.00320.94
8.2.220.0030.00624.06
8.2.210.0070.00326.77
8.2.200.0090.00018.79
8.2.190.0120.00316.58
8.2.180.0000.01925.92
8.2.170.0070.00719.12
8.2.160.0130.00022.96
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00419.89
8.2.110.0030.00622.26
8.2.100.0090.00317.91
8.2.90.0040.00418.03
8.2.80.0000.00819.18
8.2.70.0030.00517.75
8.2.60.0100.00317.80
8.2.50.0050.00518.07
8.2.40.0080.00018.16
8.2.30.0000.00818.25
8.2.20.0000.00820.47
8.2.10.0000.00717.98
8.2.00.0000.00819.21
8.1.300.0090.00920.30
8.1.290.0060.00330.84
8.1.280.0110.00325.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.80
8.1.230.0090.00322.67
8.1.220.0030.00517.79
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0050.00520.42
8.1.160.0030.00618.80
8.1.150.0000.00818.75
8.1.140.0000.00817.57
8.1.130.0000.00717.50
8.1.120.0040.00417.47
8.1.110.0070.00017.45
8.1.100.0040.00417.56
8.1.90.0040.00417.58
8.1.80.0020.00517.57
8.1.70.0030.00317.55
8.1.60.0090.00017.69
8.1.50.0030.00617.70
8.1.40.0280.00317.65
8.1.30.0280.01017.73
8.1.20.0260.00617.75
8.1.10.0210.00717.65
8.1.00.0110.01417.48
8.0.300.0000.00822.03
8.0.290.0050.00216.86
8.0.280.0030.00620.25
8.0.270.0030.00318.16
8.0.260.0000.00716.88
8.0.250.0040.00417.06
8.0.240.0030.00316.99
8.0.230.0040.00417.03
8.0.220.0040.00416.95
8.0.210.0000.00717.00
8.0.200.0000.00716.99
8.0.190.0070.00017.05
8.0.180.0040.00417.06
8.0.170.0100.00016.86
8.0.160.0230.00616.98
8.0.150.0180.00316.99
8.0.140.0140.00516.91
8.0.130.0170.00516.84
8.0.120.0000.01216.98
8.0.110.0150.01016.94
8.0.100.0190.00916.96
8.0.90.0240.00316.88
8.0.80.0210.00616.86
8.0.70.0220.00416.86
8.0.60.0240.00317.00
8.0.50.0180.00916.88
8.0.30.0160.01016.90
8.0.20.0200.00816.96
8.0.10.0280.00016.99
7.4.330.0030.00315.55
7.4.320.0090.00016.75
7.4.300.0060.00016.79
7.4.290.0030.00316.51
7.4.280.0260.00516.75
7.4.270.0220.00716.61
7.4.260.0290.00016.74
7.4.250.0250.00416.76
7.4.240.0250.00316.61
7.4.230.0250.00016.76
7.4.220.0140.00616.76
7.4.210.0130.00716.76
7.4.200.0230.00016.77
7.4.190.0240.00416.74
7.4.180.0250.00016.63
7.4.160.0220.00416.80
7.4.150.0250.00216.76
7.4.140.0200.00416.57
7.4.130.0230.00416.69
7.4.120.0190.00816.56
7.4.110.0120.01216.78
7.4.100.0200.00416.81
7.4.90.0180.00816.66
7.4.80.0160.00516.72
7.4.70.0100.01016.78
7.4.60.0110.01116.55
7.4.50.0160.00316.60
7.4.40.0180.00316.71
7.4.30.0150.00716.68
7.4.20.0190.00016.64
7.4.10.0070.00316.66
7.4.00.0040.00416.73

preferences:
29.88 ms | 403 KiB | 5 Q