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;
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.28, 8.4.1 - 8.4.14, 8.5.0 - 8.5.1
Warning: Undefined variable $_ in /in/v2TAY on line 3 Warning: Undefined variable $options in /in/v2TAY on line 3 Warning: Undefined variable $parent in /in/v2TAY on line 3 Warning: Undefined variable $stable in /in/v2TAY on line 3 Warning: Undefined variable $key in /in/v2TAY on line 3 Warning: Undefined variable $hasNormal in /in/v2TAY on line 3 Warning: Undefined variable $scopedSlots in /in/v2TAY on line 3 Warning: Undefined variable $slots in /in/v2TAY on line 3 Warning: Undefined variable $createElement in /in/v2TAY on line 3 Warning: Undefined variable $mount in /in/v2TAY on line 3 Warning: Undefined variable $destroy in /in/v2TAY on line 3 Warning: Undefined variable $vnode in /in/v2TAY on line 3 Warning: Undefined variable $attrs in /in/v2TAY on line 3 Warning: Undefined variable $listeners in /in/v2TAY on line 3 Warning: Undefined variable $nextTick in /in/v2TAY on line 3 Warning: Undefined variable $on in /in/v2TAY on line 3 Warning: Undefined variable $forceUpdate in /in/v2TAY on line 3 Warning: Undefined variable $off in /in/v2TAY on line 3 Warning: Undefined variable $once in /in/v2TAY on line 3 Warning: Undefined variable $emit in /in/v2TAY on line 3 Warning: Undefined variable $children in /in/v2TAY on line 3 Warning: Undefined variable $root in /in/v2TAY on line 3 Warning: Undefined variable $refs in /in/v2TAY on line 3 Warning: Undefined variable $el in /in/v2TAY on line 3 Warning: Undefined variable $watch in /in/v2TAY on line 3 Warning: Undefined variable $data in /in/v2TAY on line 3 Warning: Undefined variable $props in /in/v2TAY on line 3 Warning: Undefined variable $set in /in/v2TAY on line 3 Warning: Undefined variable $delete in /in/v2TAY on line 3 Warning: Undefined variable $isServer in /in/v2TAY on line 3 Warning: Undefined variable $ssrContext in /in/v2TAY on line 3 Warning: Undefined variable $url_base in /in/v2TAY on line 3 Warning: Undefined variable $isDev in /in/v2TAY on line 3 Warning: Undefined variable $value in /in/v2TAY on line 3 count is 1061 And sum is 0
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 7.4.0 - 7.4.33
Notice: Undefined variable: _ in /in/v2TAY on line 3 Notice: Undefined variable: options in /in/v2TAY on line 3 Notice: Undefined variable: parent in /in/v2TAY on line 3 Notice: Undefined variable: stable in /in/v2TAY on line 3 Notice: Undefined variable: key in /in/v2TAY on line 3 Notice: Undefined variable: hasNormal in /in/v2TAY on line 3 Notice: Undefined variable: scopedSlots in /in/v2TAY on line 3 Notice: Undefined variable: slots in /in/v2TAY on line 3 Notice: Undefined variable: createElement in /in/v2TAY on line 3 Notice: Undefined variable: mount in /in/v2TAY on line 3 Notice: Undefined variable: destroy in /in/v2TAY on line 3 Notice: Undefined variable: vnode in /in/v2TAY on line 3 Notice: Undefined variable: attrs in /in/v2TAY on line 3 Notice: Undefined variable: listeners in /in/v2TAY on line 3 Notice: Undefined variable: nextTick in /in/v2TAY on line 3 Notice: Undefined variable: on in /in/v2TAY on line 3 Notice: Undefined variable: forceUpdate in /in/v2TAY on line 3 Notice: Undefined variable: off in /in/v2TAY on line 3 Notice: Undefined variable: once in /in/v2TAY on line 3 Notice: Undefined variable: emit in /in/v2TAY on line 3 Notice: Undefined variable: children in /in/v2TAY on line 3 Notice: Undefined variable: root in /in/v2TAY on line 3 Notice: Undefined variable: refs in /in/v2TAY on line 3 Notice: Undefined variable: el in /in/v2TAY on line 3 Notice: Undefined variable: watch in /in/v2TAY on line 3 Notice: Undefined variable: data in /in/v2TAY on line 3 Notice: Undefined variable: props in /in/v2TAY on line 3 Notice: Undefined variable: set in /in/v2TAY on line 3 Notice: Undefined variable: delete in /in/v2TAY on line 3 Notice: Undefined variable: isServer in /in/v2TAY on line 3 Notice: Undefined variable: ssrContext in /in/v2TAY on line 3 Notice: Undefined variable: url_base in /in/v2TAY on line 3 Notice: Undefined variable: isDev in /in/v2TAY on line 3 Notice: Undefined variable: value in /in/v2TAY on line 3 count is 1061 And sum is 0

preferences:
73.31 ms | 416 KiB | 5 Q