3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo($v) { return $v + 1; } $foo = function ($v) { return $v + 1; }; $a = range(0,100000); $t = microtime(1); array_walk($a, 'foo'); $t = microtime(1) - $t; var_dump($t); $a = range(0,100000); $t = microtime(1); array_walk($a, $foo); $t = microtime(1) - $t; var_dump($t);
based on qL3g7
Output for 7.1.0
float(0.010447978973389) float(0.0099358558654785)
Output for 7.0.14
float(0.007375955581665) float(0.0075139999389648)
Output for 7.0.6
float(0.0041069984436035) float(0.006309986114502)
Output for 7.0.5
float(0.0066699981689453) float(0.0085499286651611)
Output for 7.0.4
float(0.0060968399047852) float(0.0094799995422363)
Output for 7.0.3
float(0.0049290657043457) float(0.0075409412384033)
Output for 7.0.2
float(0.0059440135955811) float(0.0087201595306396)
Output for 7.0.1
float(0.006364107131958) float(0.0086939334869385)
Output for 7.0.0
float(0.0061938762664795) float(0.0091981887817383)
Output for hhvm-3.12.0
float(0.012581825256348) float(0.012792110443115)
Output for hhvm-3.10.0
float(0.015017032623291) float(0.01501989364624)
Output for 5.6.28
float(-0.018249988555908) float(-0.018642902374268)
Output for 5.6.21
float(0.021637916564941) float(0.015420913696289)
Output for 5.6.20
float(0.015643119812012) float(0.012764930725098)
Output for 5.6.19
float(0.021926879882812) float(0.01558518409729)
Output for 5.6.18
float(0.019355058670044) float(0.014328002929688)
Output for 5.6.17
float(0.019501924514771) float(0.014012098312378)
Output for 5.6.16
float(0.019870042800903) float(0.017127990722656)
Output for 5.6.15
float(0.021789789199829) float(0.015213966369629)
Output for 5.6.14
float(0.015024185180664) float(0.012558937072754)
Output for 5.6.13
float(0.016163110733032) float(0.012799024581909)
Output for 5.6.12
float(0.01679801940918) float(0.012679815292358)
Output for 5.6.11
float(0.018187046051025) float(0.012657880783081)
Output for 5.6.10
float(0.019653797149658) float(0.014391899108887)
Output for 5.6.9
float(0.015902042388916) float(0.012477159500122)
Output for 5.6.8
float(0.022547006607056) float(0.017347097396851)
Output for 5.5.35
float(0.012886047363281) float(0.010416984558105)
Output for 5.5.34
float(0.018826961517334) float(0.013945817947388)
Output for 5.5.33
float(0.015384912490845) float(0.012198209762573)
Output for 5.5.32
float(0.014015913009644) float(0.011437177658081)
Output for 5.5.31
float(0.014538049697876) float(0.011918067932129)
Output for 5.5.30
float(0.015736103057861) float(0.012440919876099)
Output for 5.5.29
float(0.016762971878052) float(0.012249946594238)
Output for 5.5.28
float(0.019407987594604) float(0.015130996704102)
Output for 5.5.27
float(0.018839120864868) float(0.013492107391357)
Output for 5.5.26
float(0.020915985107422) float(0.01521897315979)
Output for 5.5.25
float(0.01903510093689) float(0.013906955718994)
Output for 5.5.24
float(0.024659872055054) float(0.019051790237427)
Output for 5.4.45
float(0.086364984512329) float(0.049476146697998)
Output for 5.4.44
float(0.043844938278198) float(0.054325819015503)
Output for 5.4.43
float(0.02538800239563) float(0.030357122421265)
Output for 5.4.42
float(0.050133943557739) float(0.04449987411499)
Output for 5.4.41
float(0.017874956130981) float(0.01130485534668)
Output for 5.4.40
float(0.029217004776001) float(0.023881912231445)
Output for 5.4.39
float(0.030648946762085) float(0.027425050735474)
Output for 5.4.38
float(0.051193952560425) float(0.036762952804565)
Output for 5.4.37
float(0.02544093132019) float(0.020469903945923)
Output for 5.4.36
float(0.025721073150635) float(0.020133018493652)
Output for 5.4.35
float(0.041530847549438) float(0.030539035797119)
Output for 5.4.34
float(0.068656921386719) float(0.064450025558472)
Output for 5.4.32
float(0.016865968704224) float(0.014089107513428)
Output for 5.4.31
float(0.017918109893799) float(0.014127016067505)
Output for 5.4.30
float(0.018090963363647) float(0.01481294631958)
Output for 5.4.29
float(0.017446041107178) float(0.014048099517822)
Output for 5.4.28
float(0.018078804016113) float(0.014244079589844)
Output for 5.4.27
float(0.018515110015869) float(0.014328956604004)
Output for 5.4.26
float(0.018151044845581) float(0.01460599899292)
Output for 5.4.25
float(0.018311023712158) float(0.014779806137085)
Output for 5.4.24
float(0.017507076263428) float(0.01379919052124)
Output for 5.4.23
float(0.017345905303955) float(0.015480995178223)
Output for 5.4.22
float(0.017131090164185) float(0.014582872390747)
Output for 5.4.21
float(0.016950845718384) float(0.014556884765625)
Output for 5.4.20
float(0.025437116622925) float(0.014345169067383)
Output for 5.4.19
float(0.017289876937866) float(0.013940095901489)
Output for 5.4.18
float(0.021749973297119) float(0.014337062835693)
Output for 5.4.17
float(0.016875982284546) float(0.014091968536377)
Output for 5.4.16
float(0.018074989318848) float(0.014450073242188)
Output for 5.4.15
float(0.017526149749756) float(0.014050960540771)
Output for 5.4.14
float(0.01695990562439) float(0.013537168502808)
Output for 5.4.13
float(0.017346858978271) float(0.015343904495239)
Output for 5.4.12
float(0.020795106887817) float(0.034202098846436)
Output for 5.4.11
float(0.017796039581299) float(0.015069007873535)
Output for 5.4.10
float(0.017920970916748) float(0.015216112136841)
Output for 5.4.9
float(0.018134117126465) float(0.014281988143921)
Output for 5.4.8
float(0.017521858215332) float(0.014394998550415)
Output for 5.4.7
float(0.017928123474121) float(0.014409065246582)
Output for 5.4.6
float(0.018126964569092) float(0.015144109725952)
Output for 5.4.5
float(0.017944097518921) float(0.015028953552246)
Output for 5.4.4
float(0.01768684387207) float(0.022891998291016)
Output for 5.4.3
float(0.018547058105469) float(0.015887975692749)
Output for 5.4.2
float(0.017966032028198) float(0.035393953323364)
Output for 5.4.1
float(0.018455982208252) float(0.015236139297485)
Output for 5.4.0
float(0.017553091049194) float(0.014029026031494)
Output for 5.3.29
float(0.017397165298462) float(0.014863014221191)
Output for 5.3.28
float(0.016936063766479) float(0.014492988586426)
Output for 5.3.27
float(0.017274141311646) float(0.01471209526062)
Output for 5.3.26
float(0.017915964126587) float(0.014530897140503)
Output for 5.3.25
float(0.019595146179199) float(0.014688014984131)
Output for 5.3.24
float(0.017803907394409) float(0.01491379737854)
Output for 5.3.23
float(0.016993999481201) float(0.014297008514404)
Output for 5.3.22
float(0.019603967666626) float(0.014755964279175)
Output for 5.3.21
float(0.017719030380249) float(0.014832019805908)
Output for 5.3.20
float(0.025205850601196) float(0.015156984329224)
Output for 5.3.19
float(0.017616987228394) float(0.015382051467896)
Output for 5.3.18
float(0.018204927444458) float(0.014698028564453)
Output for 5.3.17
float(0.017441987991333) float(0.014416933059692)
Output for 5.3.16
float(0.018057823181152) float(0.01990795135498)
Output for 5.3.15
float(0.018096923828125) float(0.015408992767334)
Output for 5.3.14
float(0.017466068267822) float(0.014847040176392)
Output for 5.3.13
float(0.017167806625366) float(0.014519929885864)
Output for 5.3.12
float(0.017122030258179) float(0.017756938934326)
Output for 5.3.11
float(0.017679929733276) float(0.01474404335022)
Output for 5.3.10
float(0.017688989639282) float(0.01484489440918)
Output for 5.3.9
float(0.017269849777222) float(0.015526056289673)
Output for 5.3.8
float(0.017562866210938) float(0.014227151870728)
Output for 5.3.7
float(0.017827033996582) float(0.014855861663818)
Output for 5.3.6
float(0.017744064331055) float(0.014512062072754)
Output for 5.3.5
float(0.018229961395264) float(0.014819860458374)
Output for 5.3.4
float(0.023580074310303) float(0.014520883560181)
Output for 5.3.3
float(0.021406173706055) float(0.014466047286987)
Output for 5.3.2
float(0.017024993896484) float(0.01459813117981)
Output for 5.3.1
float(0.016706943511963) float(0.014814138412476)
Output for 5.3.0
float(0.018844127655029) float(0.016211032867432)
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/3FOmp on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/3FOmp on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/3FOmp on line 7
Process exited with code 255.