3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $st = microtime(true); $x=array("x"=>1, "y"=>2); $y = array("y"=>3, "z"=>4); for ($i=1; $i<=500000; $i++) { $y + $x; } echo 'TIME:' . (microtime(true) - $st) . '<br/>'; $st = microtime(true); $x=array("x"=>1, "y"=>2); $y = array("y"=>3, "z"=>4); for ($i=1; $i<=500000; $i++) { array_merge($x, $y); } echo 'TIME:' . (microtime(true) - $st) . '<br/>';
Output for 7.1.0
TIME:0.053734064102173<br/>TIME:0.060418128967285<br/>
Output for 7.0.14
TIME:0.051282167434692<br/>TIME:0.055583953857422<br/>
Output for 7.0.6
TIME:0.043955087661743<br/>TIME:0.044668912887573<br/>
Output for 7.0.5
TIME:0.044797897338867<br/>TIME:0.046385049819946<br/>
Output for 7.0.4
TIME:0.036064147949219<br/>TIME:0.044862985610962<br/>
Output for 7.0.3
TIME:0.045600891113281<br/>TIME:0.054534196853638<br/>
Output for 7.0.2
TIME:0.0464768409729<br/>TIME:0.046891927719116<br/>
Output for 7.0.1
TIME:0.037744998931885<br/>TIME:0.041198015213013<br/>
Output for 7.0.0
TIME:0.044172763824463<br/>TIME:0.042765140533447<br/>
Output for 5.6.28
TIME:0.11854791641235<br/>TIME:0.13838601112366<br/>
Output for 5.6.21
TIME:0.096946001052856<br/>TIME:0.12984299659729<br/>
Output for 5.6.20
TIME:0.072834014892578<br/>TIME:0.12711691856384<br/>
Output for 5.6.19
TIME:0.0747230052948<br/>TIME:0.12503099441528<br/>
Output for 5.6.18
TIME:0.071796894073486<br/>TIME:0.12228298187256<br/>
Output for 5.6.17
TIME:0.073496103286743<br/>TIME:0.12950205802917<br/>
Output for 5.6.16
TIME:0.091155052185059<br/>TIME:0.12803292274475<br/>
Output for 5.6.15
TIME:0.074425935745239<br/>TIME:0.12499213218689<br/>
Output for 5.6.14
TIME:0.088220119476318<br/>TIME:0.1244010925293<br/>
Output for 5.6.13
TIME:0.081628799438477<br/>TIME:0.12416005134583<br/>
Output for 5.6.12
TIME:0.07347297668457<br/>TIME:0.12582612037659<br/>
Output for 5.6.11
TIME:0.086981058120728<br/>TIME:0.12439703941345<br/>
Output for 5.6.10
TIME:0.097501993179321<br/>TIME:0.12834715843201<br/>
Output for 5.6.9
TIME:0.11447095870972<br/>TIME:0.12599205970764<br/>
Output for 5.6.8
TIME:0.085340976715088<br/>TIME:0.12504410743713<br/>
Output for 5.5.35
TIME:0.089735984802246<br/>TIME:0.12909889221191<br/>
Output for 5.5.34
TIME:0.086682081222534<br/>TIME:0.12782883644104<br/>
Output for 5.5.33
TIME:0.098918914794922<br/>TIME:0.12950706481934<br/>
Output for 5.5.32
TIME:0.10924911499023<br/>TIME:0.1355619430542<br/>
Output for 5.5.31
TIME:0.074764966964722<br/>TIME:0.12918090820312<br/>
Output for 5.5.30
TIME:0.083045959472656<br/>TIME:0.12693095207214<br/>
Output for 5.5.29
TIME:0.097794055938721<br/>TIME:0.12765908241272<br/>
Output for 5.5.28
TIME:0.091139078140259<br/>TIME:0.130450963974<br/>
Output for 5.5.27
TIME:0.084803819656372<br/>TIME:0.13535904884338<br/>
Output for 5.5.26
TIME:0.081964015960693<br/>TIME:0.12703895568848<br/>
Output for 5.5.25
TIME:0.072963953018188<br/>TIME:0.12528705596924<br/>
Output for 5.5.24
TIME:0.090340137481689<br/>TIME:0.12992596626282<br/>
Output for 5.4.45
TIME:0.082241058349609<br/>TIME:0.23384094238281<br/>
Output for 5.4.44
TIME:0.094403028488159<br/>TIME:0.23548483848572<br/>
Output for 5.4.43
TIME:0.10433888435364<br/>TIME:0.32578301429749<br/>
Output for 5.4.42
TIME:0.090728998184204<br/>TIME:0.23517608642578<br/>
Output for 5.4.41
TIME:0.096644163131714<br/>TIME:0.2369179725647<br/>
Output for 5.4.40
TIME:0.099141120910645<br/>TIME:0.30738306045532<br/>
Output for 5.4.39
TIME:0.075189113616943<br/>TIME:0.23083591461182<br/>
Output for 5.4.38
TIME:0.076138973236084<br/>TIME:0.23460912704468<br/>
Output for 5.4.37
TIME:0.080514907836914<br/>TIME:0.2504358291626<br/>
Output for 5.4.36
TIME:0.082112073898315<br/>TIME:0.22935605049133<br/>
Output for 5.4.35
TIME:0.091264009475708<br/>TIME:0.24217987060547<br/>
Output for 5.4.34
TIME:0.087433099746704<br/>TIME:0.28358387947083<br/>
Output for 5.4.32
TIME:0.097666025161743<br/>TIME:0.23404002189636<br/>
Output for 5.4.31
TIME:0.094279050827026<br/>TIME:0.22971200942993<br/>
Output for 5.4.30
TIME:0.10394692420959<br/>TIME:0.3389880657196<br/>
Output for 5.4.29
TIME:0.10235095024109<br/>TIME:0.23993015289307<br/>
Output for 5.4.28
TIME:0.099372863769531<br/>TIME:0.30922603607178<br/>
Output for 5.4.27
TIME:0.08461594581604<br/>TIME:0.26969194412231<br/>
Output for 5.4.26
TIME:0.072573900222778<br/>TIME:0.23123002052307<br/>
Output for 5.4.25
TIME:0.076261043548584<br/>TIME:0.23726296424866<br/>
Output for 5.4.24
TIME:0.088420152664185<br/>TIME:0.26098394393921<br/>
Output for 5.4.23
TIME:0.076473951339722<br/>TIME:0.23720097541809<br/>
Output for 5.4.22
TIME:0.07735800743103<br/>TIME:0.23001194000244<br/>
Output for 5.4.21
TIME:0.079583168029785<br/>TIME:0.2352888584137<br/>
Output for 5.4.20
TIME:0.090397119522095<br/>TIME:0.23552203178406<br/>
Output for 5.4.19
TIME:0.080076932907104<br/>TIME:0.23191404342651<br/>
Output for 5.4.18
TIME:0.096503973007202<br/>TIME:0.23682498931885<br/>
Output for 5.4.17
TIME:0.075410127639771<br/>TIME:0.23953700065613<br/>
Output for 5.4.16
TIME:0.077165842056274<br/>TIME:0.23846006393433<br/>
Output for 5.4.15
TIME:0.1001181602478<br/>TIME:0.23353290557861<br/>
Output for 5.4.14
TIME:0.090951919555664<br/>TIME:0.24886512756348<br/>
Output for 5.4.13
TIME:0.098309993743896<br/>TIME:0.24414396286011<br/>
Output for 5.4.12
TIME:0.071789026260376<br/>TIME:0.2338011264801<br/>
Output for 5.4.11
TIME:0.070134162902832<br/>TIME:0.22827005386353<br/>
Output for 5.4.10
TIME:0.088457107543945<br/>TIME:0.23231410980225<br/>
Output for 5.4.9
TIME:0.069891929626465<br/>TIME:0.23173213005066<br/>
Output for 5.4.8
TIME:0.073171138763428<br/>TIME:0.22717905044556<br/>
Output for 5.4.7
TIME:0.073181867599487<br/>TIME:0.2290358543396<br/>
Output for 5.4.6
TIME:0.098246097564697<br/>TIME:0.23545002937317<br/>
Output for 5.4.5
TIME:0.10016393661499<br/>TIME:0.23978114128113<br/>
Output for 5.4.4
TIME:0.08698296546936<br/>TIME:0.23698306083679<br/>
Output for 5.4.3
TIME:0.089917898178101<br/>TIME:0.23703098297119<br/>
Output for 5.4.2
TIME:0.10208106040955<br/>TIME:0.24314188957214<br/>
Output for 5.4.1
TIME:0.072445154190063<br/>TIME:0.25671100616455<br/>
Output for 5.4.0
TIME:0.073598861694336<br/>TIME:0.24197697639465<br/>
Output for 5.3.29
TIME:0.089677095413208<br/>TIME:0.30111885070801<br/>
Output for 5.3.28
TIME:0.077998876571655<br/>TIME:0.24809217453003<br/>
Output for 5.3.27
TIME:0.10139393806458<br/>TIME:0.26100707054138<br/>
Output for 5.3.26
TIME:0.098330020904541<br/>TIME:0.25394582748413<br/>
Output for 5.3.25
TIME:0.10407900810242<br/>TIME:0.25667190551758<br/>
Output for 5.3.24
TIME:0.096445798873901<br/>TIME:0.25024795532227<br/>
Output for 5.3.23
TIME:0.10291814804077<br/>TIME:0.25091886520386<br/>
Output for 5.3.22
TIME:0.10184907913208<br/>TIME:0.25739908218384<br/>
Output for 5.3.21
TIME:0.10557794570923<br/>TIME:0.26018404960632<br/>
Output for 5.3.20
TIME:0.10181593894958<br/>TIME:0.25957703590393<br/>
Output for 5.3.19
TIME:0.1034848690033<br/>TIME:0.25261783599854<br/>
Output for 5.3.18
TIME:0.078817844390869<br/>TIME:0.25027799606323<br/>
Output for 5.3.17
TIME:0.077039003372192<br/>TIME:0.24649405479431<br/>
Output for 5.3.16
TIME:0.11852097511292<br/>TIME:0.34766912460327<br/>
Output for 5.3.15
TIME:0.10174798965454<br/>TIME:0.25549602508545<br/>
Output for 5.3.14
TIME:0.09791111946106<br/>TIME:0.25454092025757<br/>
Output for 5.3.13
TIME:0.10051107406616<br/>TIME:0.25125598907471<br/>
Output for 5.3.12
TIME:0.10270619392395<br/>TIME:0.2527871131897<br/>
Output for 5.3.11
TIME:0.07869291305542<br/>TIME:0.25057983398438<br/>
Output for 5.3.10
TIME:0.080183029174805<br/>TIME:0.25289702415466<br/>
Output for 5.3.9
TIME:0.087150096893311<br/>TIME:0.33849501609802<br/>
Output for 5.3.8
TIME:0.11322617530823<br/>TIME:0.26270294189453<br/>
Output for 5.3.7
TIME:0.096040964126587<br/>TIME:0.25203895568848<br/>
Output for 5.3.6
TIME:0.10499119758606<br/>TIME:0.25354599952698<br/>
Output for 5.3.5
TIME:0.082003831863403<br/>TIME:0.25168299674988<br/>
Output for 5.3.4
TIME:0.08045506477356<br/>TIME:0.25401401519775<br/>
Output for 5.3.3
TIME:0.089084148406982<br/>TIME:0.27641606330872<br/>
Output for 5.3.2
TIME:0.095343828201294<br/>TIME:0.29249787330627<br/>
Output for 5.3.1
TIME:0.10267400741577<br/>TIME:0.25279378890991<br/>
Output for 5.3.0
TIME:0.093145132064819<br/>TIME:0.14049005508423<br/>
Output for 5.2.17
TIME:0.084684133529663<br/>TIME:0.24532794952393<br/>
Output for 5.2.16
TIME:0.090352058410645<br/>TIME:0.25931692123413<br/>
Output for 5.2.15
TIME:0.11214709281921<br/>TIME:0.26809096336365<br/>
Output for 5.2.14
TIME:0.1092050075531<br/>TIME:0.25434708595276<br/>
Output for 5.2.13
TIME:0.084649085998535<br/>TIME:0.2510998249054<br/>
Output for 5.2.12
TIME:0.1122899055481<br/>TIME:0.25726389884949<br/>
Output for 5.2.11
TIME:0.12027788162231<br/>TIME:0.2568998336792<br/>
Output for 5.2.10
TIME:0.11289095878601<br/>TIME:0.25649404525757<br/>
Output for 5.2.9
TIME:0.11605310440063<br/>TIME:0.25595593452454<br/>
Output for 5.2.8
TIME:0.10966110229492<br/>TIME:0.25524806976318<br/>
Output for 5.2.7
TIME:0.11682295799255<br/>TIME:0.2653968334198<br/>
Output for 5.2.6
TIME:0.10632395744324<br/>TIME:0.25179100036621<br/>
Output for 5.2.5
TIME:0.092360019683838<br/>TIME:0.27272415161133<br/>
Output for 5.2.4
TIME:0.10241389274597<br/>TIME:0.25910401344299<br/>
Output for 5.2.3
TIME:0.11575293540955<br/>TIME:0.26097202301025<br/>
Output for 5.2.2
TIME:0.098882913589478<br/>TIME:0.2597279548645<br/>
Output for 5.2.1
TIME:0.098282814025879<br/>TIME:0.2528178691864<br/>
Output for 5.2.0
TIME:0.12276601791382<br/>TIME:0.25313401222229<br/>
Output for 5.1.6
TIME:0.096048831939697<br/>TIME:0.23528289794922<br/>
Output for 5.1.5
TIME:0.089405059814453<br/>TIME:0.23454189300537<br/>
Output for 5.1.4
TIME:0.098348140716553<br/>TIME:0.23319602012634<br/>
Output for 5.1.3
TIME:0.12874507904053<br/>TIME:0.30858206748962<br/>
Output for 5.1.2
TIME:0.096016883850098<br/>TIME:0.2908890247345<br/>
Output for 5.1.1
TIME:0.10865187644958<br/>TIME:0.23988103866577<br/>
Output for 5.1.0
TIME:0.10758399963379<br/>TIME:0.24215292930603<br/>
Output for 5.0.5
TIME:0.16351199150085<br/>TIME:0.3213050365448<br/>
Output for 5.0.4
TIME:0.14499592781067<br/>TIME:0.32259893417358<br/>
Output for 5.0.3
TIME:0.16334199905396<br/>TIME:0.31970405578613<br/>
Output for 5.0.2
TIME:0.14561700820923<br/>TIME:0.33333802223206<br/>
Output for 5.0.1
TIME:0.16178417205811<br/>TIME:0.32053208351135<br/>
Output for 5.0.0
TIME:0.15939211845398<br/>TIME:0.3239951133728<br/>
Output for 4.4.9
TIME:-0.854736<br/>TIME:0.336861<br/>
Output for 4.4.8
TIME:0.146829<br/>TIME:0.332733<br/>
Output for 4.4.7
TIME:0.153381<br/>TIME:-0.657985<br/>
Output for 4.4.6
TIME:0.243504<br/>TIME:-0.593796<br/>
Output for 4.4.5
TIME:0.174826<br/>TIME:0.368518<br/>
Output for 4.4.4
TIME:0.165049<br/>TIME:0.337337<br/>
Output for 4.4.3
TIME:0.188777<br/>TIME:-0.673184<br/>
Output for 4.4.2
TIME:0.162206<br/>TIME:-0.661011<br/>
Output for 4.4.1
TIME:0.187186<br/>TIME:0.341917<br/>
Output for 4.4.0
TIME:0.157358<br/>TIME:-0.669373<br/>
Output for 4.3.11
TIME:-0.823008<br/>TIME:0.329812<br/>
Output for 4.3.10
TIME:0.180634<br/>TIME:0.31328<br/>
Output for 4.3.9
TIME:0.19029<br/>TIME:0.327675<br/>
Output for 4.3.8
TIME:0.138609<br/>TIME:0.316556<br/>
Output for 4.3.7
TIME:0.134729<br/>TIME:0.318246<br/>
Output for 4.3.6
TIME:0.131929<br/>TIME:-0.681668<br/>
Output for 4.3.5
TIME:0.164661<br/>TIME:0.373795<br/>
Output for 4.3.4
TIME:0.13229<br/>TIME:-0.681854<br/>
Output for 4.3.3
TIME:0.127765<br/>TIME:0.307162<br/>
Output for 4.3.2
TIME:-0.850974<br/>TIME:0.378127<br/>
Output for 4.3.1
TIME:0.141019<br/>TIME:-0.688346<br/>
Output for 4.3.0
TIME:0.130792<br/>TIME:0.312672<br/>