3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ["exports", "56d7", "b622", "toStringTag", "z", "[object z]", "1c0b", "call", "apply", "83ab", "d1e7", "5c6c", "fc6a", "c04e", "5135", "0cfb", "getOwnPropertyDescriptor", "f", "d039", "cc12", "a", "div", "defineProperty", "Incorrect ", " ", "", "invocation", "d066", "document", "documentElement", "function", " is not a function", "iterator", "from", "342f", "test", "Can't call method on ", "825a", "e95a", "50c4", "0366", "35a1", "9bdd", "stopped", "result", "Target is not iterable", "length", "next", "value", "object", "done", "stop", "a691", "max", "min", "da84", "06cf", "9112", "6eeb", "ce4e", "e893", "94ca", "target", "global", "stat", "prototype", "noTargetGet", ".", "#", "forced", "sham", "ca84", "7839", "concat", "getOwnPropertyNames", "use strict", "9bf2", "species", "c8ba", "freeze", "string", "number", "symbol", "boolean", "toString", "[object Object]", "[object RegExp]", "floor", "then", "catch", "isArray", "stringify", "create", ",", "split", "toLowerCase", "slot,component", "key,ref,slot,slot-scope,is", "indexOf", "splice", "hasOwnProperty", "toUpperCase", "replace", "charAt", "slice", "-$1", "_length", "bind", "every", "getTime", "keys", "data-server-rendered", "component", "directive", "filter", "beforeCreate", "created", "beforeMount", "mounted", "beforeUpdate", "updated", "beforeDestroy", "destroyed", "activated", "deactivated", "errorCaptured", "serverPrefetch", "charCodeAt", "[^", "source", ".$_\\d]", "__proto__", "undefined", "platform", "userAgent", "navigator", "msie 9.0", "edge/", "android", "ios", "match", "watch", "passive", "test-passive", "addEventListener", "process", "server", "VUE_ENV", "env", "__VUE_DEVTOOLS_GLOBAL_HOOK__", "ownKeys", "set", "has", "add", "clear", "id", "subs", "addSub", "push", "removeSub", "depend", "addDep", "notify", "update", "pop", "tag", "data", "children", "text", "elm", "ns", "context", "fnContext", "fnOptions", "fnScopeId", "key", "componentOptions", "componentInstance", "parent", "raw", "isStatic", "isRootInsert", "isComment", "isCloned", "isOnce", "asyncFactory", "asyncMeta", "isAsyncPlaceholder", "get", "child", "defineProperties", "shift", "unshift", "sort", "reverse", "__ob__", "observeArray", "dep", "forEach", "vmCount", "walk", "isExtensible", "_isVue", "configurable", "optionMergeStrategies", "s", "props", "methods", "inject", "computed", "provide", "directives", "options", "_base", "extends", "mixins", "type", "default", "propsData", "$options", "_props", "Function", "errorCaptured hook", "$parent", "_handled", " (Promise/async)", "errorHandler", "config.errorHandler", "error", "resolve", "[object MutationObserverConstructor]", "createTextNode", "observe", "nextTick", "isFrozen", "&", "~", "!", "fns", "v-on handler", "once", "name", "capture", "params", "hook", "merged", "attrs", "_", "_isVList", "__vlist", "__", "_provided", "slot", "template", "$stable", "$key", "_normalized", "$hasNormal", "$", "proxy", "$scopedSlots", "$slots", "$createElement", "filters", "keyCodes", "class", "style", "mustUseProp", "domProps", "on", "update:", "_staticTrees", "_renderProxy", "staticRenderFns", "__static__", "__once__", "fn", "_o", "_n", "_s", "_l", "_t", "_q", "_i", "_m", "_f", "_k", "_b", "_v", "_e", "_u", "_g", "_d", "_p", "_uid", "_original", "_compiled", "listeners", "injections", "slots", "scopedSlots", "_scopeId", "_c", "render", "_isDestroyed", "keepAlive", "prepatch", "$mount", "_isMounted", "$destroy", "extend", "cid", "model", "functional", "nativeOn", "abstract", "vue-component-", "-", "inlineTemplate", "Ctor", "_merged", "prop", "event", "input", "callback", "is", "$vnode", "getTagNamespace", "isReservedTag", "parsePlatformTagName", "pre", "components", "foreignObject", "svg", "_vnode", "_parentVnode", "_renderChildren", "$attrs", "$listeners", "_parentListeners", "$nextTick", "_render", "__esModule", "Module", "errorComp", "resolved", "owners", "loading", "loadingComp", "hook:destroyed", "$on", "$forceUpdate", "delay", "timeout", "_events", "_hasHookEvent", "$off", "$once", "$emit", 'event handler for "', '"', "$children", "$root", "$refs", "_watcher", "_inactive", "_directInactive", "_isBeingDestroyed", "_update", "$el", "__patch__", "__vue__", "teardown", "_watchers", "_data", "_propKeys", " hook", "hook:", "now", "performance", "timeStamp", "Event", "createEvent", "before", "run", "devtools", "flush", "emit", "vm", "deep", "user", "lazy", "sync", "cb", "active", "dirty", "deps", "newDeps", "depIds", "newDepIds", "expression", "getter", 'getter for watcher "', "cleanupDeps", 'callback for watcher "', "evaluate", "data()", "_computedWatchers", "cache", "handler", "$watch", "$data", "$props", "$set", "$delete", "immediate", 'callback for immediate watcher "', "_init", "_isComponent", "constructor", "_self", "el", "_componentTag", "super", "superOptions", "extendOptions", "sealedOptions", "use", "_installedPlugins", "install", "mixin", "_Ctor", "keep-alive", "include", "exclude", "::", "config", "util", "delete", "observable", "$isServer", "$ssrContext", "ssrContext", "FunctionalRenderContext", "version", "2.6.11", "style,class", "input,textarea,option,select,progress", "button", "selected", "option", "checked", "muted", "video", "contenteditable,draggable,spellcheck", "events,caret,typing,plaintext-only", "false", "contenteditable", "true", "allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible", "http://www.w3.org/1999/xlink", ":", "xlink", "staticClass", "http://www.w3.org/2000/svg", "http://www.w3.org/1998/Math/MathML", "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot", "svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view", "math", "createElement", "HTMLUnknownElement", "HTMLElement", "text,number,password,search,email,tel,url", "querySelector", "select", "multiple", "setAttribute", "createElementNS", "createComment", "insertBefore", "removeChild", "appendChild", "parentNode", "nextSibling", "tagName", "textContent", "ref", "refInFor", "activate", "remove", "destroy", "modules", "nodeOps", "init", "pendingInsert", "transition", "insert", "setStyleScope", "setTextContent", "postpatch", "attrs,class,staticClass,staticStyle,key", "hasChildNodes", "innerHTML", "firstChild", "nodeType", "hasAttribute", "removeAttribute", "_leaveCb", "oldValue", "oldArg", "arg", "def", "componentUpdated", "inserted", "unbind", "modifiers", "rawName", "join", "directive ", "inheritAttrs", "removeAttributeNS", "allowfullscreen", "EMBED", "setAttributeNS", "TEXTAREA", "placeholder", "__ieph", "stopImmediatePropagation", "removeEventListener", "_transitionClasses", "_prevClass", "__r", "__c", "change", "_wrapper", "currentTarget", "ownerDocument", "childNodes", "PROGRESS", "_value", "<svg>", "</svg>", "composing", "OPTION", "activeElement", "_vModifiers", "trim", "staticStyle", "setProperty", "important", "Webkit", "Moz", "ms", "normalizedStyle", "classList", "getAttribute", "css", "v", "-enter", "-enter-to", "-enter-active", "-leave", "-leave-to", "-leave-active", "animation", "transitionend", "animationend", "ontransitionend", "onwebkittransitionend", "WebkitTransition", "webkitTransitionEnd", "onanimationend", "onwebkitanimationend", "WebkitAnimation", "webkitAnimationEnd", "requestAnimationFrame", "propCount", "getComputedStyle", ", ", "Delay", "Duration", "Property", "map", "cancelled", "_enterCb", "enterClass", "enterToClass", "enterActiveClass", "appearClass", "appearToClass", "appearActiveClass", "beforeEnter", "enter", "afterEnter", "enterCancelled", "beforeAppear", "appear", "afterAppear", "appearCancelled", "duration", "show", "_pending", "leaveClass", "leaveToClass", "leaveActiveClass", "beforeLeave", "leave", "afterLeave", "leaveCancelled", "delayLeave", "selectionchange", "vmodel", "_vOptions", "textarea", "compositionstart", "compositionend", "some", "selectedIndex", "HTMLEvents", "initEvent", "dispatchEvent", "__vOriginalDisplay", "none", "display", "mode", "_leaving", "__transition-", "comment", "out-in", "in-out", "kept", "span", "prevChildren", "pos", "getBoundingClientRect", "removed", "moveClass", "-move", "hasMove", "_reflow", "offsetHeight", "body", "moved", "transform", "WebkitTransform", "transitionDuration", "_moveCb", "propertyName", "_hasMove", "cloneNode", "hasTransform", "newPos", "left", "top", "translate(", "px,", "px)", "0s", "isReservedAttr", "isUnknownElement", "c6b6", "1be4", "1cdc", "location", "setImmediate", "clearImmediate", "MessageChannel", "Dispatch", "onreadystatechange", "protocol", "//", "host", "postMessage", "port2", "onmessage", "port1", "importScripts", "file:", "script", "message", "versions", "v8", "f5df", "3f8c", "@@iterator", "df75", "861d", "Can't set ", " as a prototype", "propertyIsEnumerable", "String", "7c73", "unscopables", "console", "getOwnPropertySymbols", "23cb", "c430", "c6cd", "3.6.5", "pure", "© 2020 Denis Pushkarev (zloirock.ru)", "r", "e260", "e6cf", "cca6", "a79d", "2b0e", "v-show", "IsShow", "app", "container", "shop-fullbox", "shop-layout fade-in-bottom", "shop-header base-bg-color", "Zone_Label", "shop-items-list", "ItemsList", "shop-item base-bg-color", "item-image", "img", "URL_Images", ".png", "item-info", "label", "truncate", "item-select-count", "item-select-count-remove", "btn btn-count-remove", "Item_On_Count_Remove", "item-select-count-show", "count", "item-select-count-add", "btn btn-count-add", "Item_On_Count_Add", "item-price", "item-price-result", "black_money", "price_account_name", "span-price-red", "span-price-green", "i", "fas fa-dollar-sign", "price", "0,0", "item-action", "btn btn-xzero btn-item-buy", "Item_On_Action_Buy", "far fa-check-circle", " ยืนยันการซื้อ ", "IsLoading", "xLoading", "fas fa-minus", "fas fa-plus", "d3b7", "96cf", "throw", "5fe6", "7660", "xloading-container", "xloading-fullbox fade-in-bottom", "xloading-content", "fas fa-spinner fa-spin", " กรุณารอสักครู่... ", "data-v-", "_registeredComponents", "_ssrRegister", "shadowRoot", "_injectStyles", "App", "status", "ShopOpen", "shop_open", "NUI_On_ConfigSettings", "config_settings", "NUI_On_ItemsSetUp", "itemslist_setup", "action", "keyup", "keyCode", "ShopClose", "General", "Shop - General", "ShopClear", "Zone_Index", "Zone_Name", "limit", "On_Buy", "post", "sent", "[Item_On_Action_Buy] Error Callback", "log", "end", "prev", "wrap", "mark", "Close", "$url_base", "POST", "return", "abrupt", "t0", "a7c6", "n", "productionTip", "$isDev", "http://xzero_shop/", "#app", "241c", "7418", "Reflect", "7b0b", "44ad", "assign", "b", "abcdefghijklmnopqrst", "7f9a", "f772", "d012", "WeakMap", "Incompatible receiver, ", " required", "state", "8925", "69f3", "enforce", "unsafe", "enumerable", "isPrototypeOf", "toLocaleString", "valueOf", "1d80", "37e8", ">", "<", "IE_PROTO", "/", "write", "close", "Object", "parentWindow", "iframe", "java", "src", "contentWindow", "open", "document.F=Object", "F", "domain", "htmlfile", "23e7", "9ed3", "e163", "d2bb", "d44e", "ae93", "IteratorPrototype", "BUGGY_SAFARI_ITERATORS", "values", "entries", " Iterator", "Array", " is not an object", "inspectSource", "random", "Symbol(", ")_", "normalize", "NATIVE", "N", "POLYFILL", "P", "asyncIterator", "@@asyncIterator", "@@toStringTag", "_invoke", "normal", "suspendedStart", "suspendedYield", "executing", "completed", "getPrototypeOf", "__await", "Generator is already running", "method", "delegate", "_sent", "dispatchException", "The iterator does not provide a 'throw' method", "resultName", "nextLoc", "iterator result is not an object", "catchLoc", "finallyLoc", "afterLoc", "tryEntries", "completion", "root", "reset", "displayName", "GeneratorFunction", "isGeneratorFunction", "setPrototypeOf", "awrap", "AsyncIterator", "async", "Generator", "[object Generator]", "t", "rval", "tryLoc", "try statement without catch or finally", "break", "continue", "complete", "illegal catch attempt", "regeneratorRuntime = r", "Accessors not supported", "ceil", "fea9", "4840", "cdf9", "finally", "Promise", "capitalize", "d", "uppercase", "lowercase", "Invalid attempt to spread non-iterable instance", "[object Arguments]", "currency", "bytes", "pluralize", "ordinal", "percent", "pow", "isArrayLike", "isObject", "each", "Arguments", "Number", "Date", "RegExp", "Error", "[object ", "]", "toArray", "toNumber", "convertRangeToArray", "convertArray", "isPlainObject", "getPath", "exist", "onlyFirstLetter", "substring", "...", "$value", "decimalDigits", "thousandsSeparator", "symbolOnLeft", "spaceBetweenAmountAndSymbol", "showPlusSign", "abs", "decimalSeparator", "$1", "+", "toFixed", "e", "round", " TB", " GB", " MB", " kB", " byte", " bytes", "includeNumber", "st", "nd", "rd", "th", "format", "sign", "unit", "float", "decimals", "int", "base", "0", "K", "M", "$2", "%", "Vue", "Vue2Filters", "l", "m", "c", "o", "p", "00ee", "2cf4", "MutationObserver", "WebKitMutationObserver", "queueMicrotask", "exit", "5692", "90e3", "4930", "fdbf", "wks", "Symbol", "withoutSetter", "Symbol.", "Can't convert object to primitive value", "__core-js_shared__", "return this", "4d64", "60da", "f069", "promise", "428f", "3bbe", "b041", "Math", "e177", "44d2", "7dd0", "Array Iterator", "getterFor", "kind", "index", "e2cc", "2626", "19aa", "2266", "1c7e", "b575", "44de", "e667", "2d00", "TypeError", "fetch", "unhandledrejection", "rejectionhandled", "all", "notified", "reactions", "ok", "fail", "reject", "rejection", "Promise-chain cycle", "reason", "Unhandled promise rejection", "unhandledRejection", "rejectionHandled", "Promise can't be resolved itself", "56ef", "Bad Promise constructor", "Undefined", "Null", "callee"]; $sum = array_sum(array_column($arr, 0)); $count = count($arr); echo "count is ". $count . " And sum is " . $sum;

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.5.10.0130.00920.67
8.5.00.0160.00923.05
8.4.150.0030.00014.05
8.4.140.0110.01118.00
8.4.130.0100.00418.13
8.4.120.0060.00324.36
8.4.110.0050.00622.78
8.4.100.0100.01119.19
8.4.90.0100.01019.27
8.4.80.0120.01019.05
8.4.70.0060.00318.03
8.4.60.0120.00720.29
8.4.50.0060.00419.66
8.4.40.0130.00719.40
8.4.30.0030.02020.71
8.4.20.0220.00019.70
8.4.10.0000.00922.38
8.3.280.0150.00620.16
8.3.270.0110.01016.92
8.3.260.0120.00917.30
8.3.250.0100.01019.41
8.3.240.0080.00617.59
8.3.230.0090.01217.26
8.3.220.0100.00919.24
8.3.210.0080.00917.16
8.3.200.0050.00517.15
8.3.190.0140.00517.55
8.3.180.0150.00617.67
8.3.170.0070.01117.60
8.3.160.0150.00318.44
8.3.150.0130.00620.45
8.3.140.0060.00318.42
8.3.130.0110.01117.03
8.3.120.0080.00819.43
8.3.110.0070.01120.94
8.3.100.0100.00024.06
8.3.90.0050.00326.77
8.3.80.0000.01018.43
8.3.70.0090.00618.68
8.3.60.0060.01618.48
8.3.50.0120.00320.38
8.3.40.0090.00622.27
8.3.30.0120.00318.84
8.3.20.0050.00324.18
8.3.10.0060.00324.66
8.3.00.0030.00526.16
8.2.290.0140.00620.96
8.2.280.0140.01019.07
8.2.270.0190.00017.45
8.2.260.0160.00318.92
8.2.250.0040.00417.08
8.2.240.0000.00819.09
8.2.230.0050.00322.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0030.00617.13
8.2.190.0130.00317.00
8.2.180.0040.01225.92
8.2.170.0120.00319.29
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0080.00026.16
8.2.110.0040.00719.57
8.2.100.0120.00018.34
8.2.90.0000.00919.63
8.2.80.0040.00418.13
8.2.70.0060.00318.13
8.2.60.0030.00618.18
8.2.50.0000.00918.07
8.2.40.0060.00319.82
8.2.30.0040.00418.51
8.2.20.0050.00320.82
8.2.10.0080.00018.45
8.2.00.0000.00919.73
8.1.330.0130.00722.42
8.1.320.0110.00916.77
8.1.310.0090.00916.91
8.1.300.0080.00020.16
8.1.290.0070.00330.84
8.1.280.0120.00325.92
8.1.270.0060.00623.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0100.00021.16
8.1.230.0000.01217.82
8.1.220.0030.00618.16
8.1.210.0030.00618.77
8.1.200.0070.00317.60
8.1.190.0040.00417.48
8.1.180.0050.00518.10
8.1.170.0060.00318.97
8.1.160.0000.00819.28
8.1.150.0030.00518.91
8.1.140.0050.00317.86
8.1.130.0080.00019.31
8.1.120.0060.00317.79
8.1.110.0000.00817.74
8.1.100.0000.00817.86
8.1.90.0000.00817.88
8.1.80.0130.00317.72
8.1.70.0120.00317.73
8.1.60.0090.00918.00
8.1.50.0140.00317.88
8.1.40.0110.00617.93
8.1.30.0080.00917.93
8.1.20.0100.00718.01
8.1.10.0090.00917.90
8.1.00.0130.00417.86
8.0.300.0040.00418.77
8.0.290.0000.00817.25
8.0.280.0040.00418.75
8.0.270.0000.00717.20
8.0.260.0000.00718.84
8.0.250.0040.00417.41
8.0.240.0000.01017.48
8.0.230.0040.00417.36
8.0.220.0050.00317.25
8.0.210.0000.01417.32
8.0.200.0040.01017.28
8.0.190.0050.00917.39
8.0.180.0090.00617.38
8.0.170.0100.00317.40
8.0.160.0090.00517.38
8.0.150.0140.00017.13
8.0.140.0090.00617.19
8.0.130.0150.00017.23
8.0.120.0000.01417.22
8.0.110.0140.00017.30
8.0.100.0060.00917.41
8.0.90.0120.00317.35
8.0.80.0100.00317.28
8.0.70.0090.00017.32
8.0.60.0050.00517.27
8.0.50.0050.00317.32
8.0.30.0090.00017.32
8.0.20.0090.00017.39
8.0.10.0100.00517.44
7.4.330.0000.00515.55
7.4.320.0070.00016.90
7.4.300.0090.00416.79
7.4.290.0060.00616.79
7.4.280.0100.00716.80
7.4.270.0130.00416.91
7.4.260.0090.00317.00
7.4.250.0100.00316.78
7.4.240.0150.00016.84
7.4.230.0100.00717.01
7.4.220.0150.00017.04
7.4.210.0090.00516.97
7.4.200.0150.00016.84
7.4.190.0100.00516.90
7.4.180.0080.00616.96
7.4.160.0070.00716.89
7.4.150.0070.00716.87
7.4.140.0100.00516.70
7.4.130.0110.00416.91
7.4.120.0070.00716.84
7.4.110.0040.00916.81
7.4.100.0120.00216.89
7.4.90.0090.00516.84
7.4.80.0050.00916.86
7.4.70.0060.00816.88
7.4.60.0040.01016.76
7.4.50.0040.00916.66
7.4.40.0110.00216.71
7.4.30.0120.00216.92
7.4.20.0100.00316.80
7.4.10.0140.00016.72
7.4.00.0150.00016.90

preferences:
34.7 ms | 403 KiB | 5 Q