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_map('foo', $a); $t = microtime(1) - $t; var_dump($t); $a = range(0,100000); $t = microtime(1); array_map($foo, $a); $t = microtime(1) - $t; var_dump($t);
based on pS1AR
Output for 7.1.0
float(0.0066549777984619) float(0.0066368579864502)
Output for 7.0.14
float(0.0066108703613281) float(0.0073580741882324)
Output for 7.0.11
float(0.069046020507812) float(0.071610927581787)
Output for 7.0.10
float(0.086220026016235) float(0.069236993789673)
Output for 7.0.9
float(0.086803913116455) float(0.085033893585205)
Output for 7.0.8
float(0.070454120635986) float(0.066961050033569)
Output for 7.0.7
float(0.074522972106934) float(0.075177192687988)
Output for 7.0.6
float(0.075910091400146) float(0.076928853988647)
Output for 7.0.5
float(0.048372030258179) float(0.076880931854248)
Output for 7.0.4
float(0.074803113937378) float(0.055584907531738)
Output for 7.0.3
float(0.071408033370972) float(0.069440841674805)
Output for 7.0.2
float(0.081372022628784) float(0.075114011764526)
Output for 7.0.1
float(0.068933963775635) float(0.069016933441162)
Output for 7.0.0
float(0.069248914718628) float(0.069267988204956)
Output for 5.6.28
float(0.048139810562134) float(0.037050008773804)
Output for 5.6.26
float(0.050971031188965) float(0.032662868499756)
Output for 5.6.25
float(0.037009954452515) float(0.030479907989502)
Output for 5.6.24
float(0.041905879974365) float(0.032662153244019)
Output for 5.6.23
float(0.044754028320312) float(0.041960954666138)
Output for 5.6.22
float(0.045701026916504) float(0.031676054000854)
Output for 5.6.21
float(0.039489030838013) float(0.030592203140259)
Output for 5.6.20
float(0.059237003326416) float(0.035847187042236)
Output for 5.6.19
float(0.039883136749268) float(0.031914949417114)
Output for 5.6.18
float(0.035594940185547) float(0.030256986618042)
Output for 5.6.17
float(0.042880058288574) float(0.032886981964111)
Output for 5.6.16
float(0.038656949996948) float(0.038335800170898)
Output for 5.6.15
float(0.035353899002075) float(0.029278993606567)
Output for 5.6.14
float(0.041852951049805) float(0.031414985656738)
Output for 5.6.13
float(0.038527965545654) float(0.030663013458252)
Output for 5.6.12
float(0.032965898513794) float(0.029788970947266)
Output for 5.6.11
float(0.038784027099609) float(0.030858993530273)
Output for 5.6.10
float(0.036710977554321) float(0.030789852142334)
Output for 5.6.9
float(0.044862031936646) float(0.043303966522217)
Output for 5.6.8
float(0.041008949279785) float(0.030702829360962)
Output for 5.6.7
float(0.048619985580444) float(0.031698942184448)
Output for 5.6.6
float(0.038948059082031) float(0.033401012420654)
Output for 5.6.5
float(0.041488170623779) float(0.03087592124939)
Output for 5.6.4
float(0.042626142501831) float(0.03083610534668)
Output for 5.6.3
float(0.045106887817383) float(0.031113147735596)
Output for 5.6.2
float(0.036156892776489) float(0.030227899551392)
Output for 5.6.1
float(0.038183927536011) float(0.029903888702393)
Output for 5.6.0
float(0.039144992828369) float(0.030476093292236)
Output for 5.5.38
float(0.036850929260254) float(0.030150890350342)
Output for 5.5.37
float(0.036756038665771) float(0.030367136001587)
Output for 5.5.36
float(0.038922071456909) float(0.030115127563477)
Output for 5.5.35
float(0.044911861419678) float(0.034461975097656)
Output for 5.5.34
float(0.038697004318237) float(0.030060052871704)
Output for 5.5.33
float(0.044745922088623) float(0.035019874572754)
Output for 5.5.32
float(0.041331052780151) float(0.031991958618164)
Output for 5.5.31
float(0.035796165466309) float(0.03021502494812)
Output for 5.5.30
float(0.044469833374023) float(0.030465841293335)
Output for 5.5.29
float(0.035016775131226) float(0.029049158096313)
Output for 5.5.28
float(0.037728071212769) float(0.030186891555786)
Output for 5.5.27
float(0.036335945129395) float(0.03026819229126)
Output for 5.5.26
float(0.041157960891724) float(0.031253099441528)
Output for 5.5.25
float(0.046445846557617) float(0.030715942382812)
Output for 5.5.24
float(0.04275918006897) float(0.031162023544312)
Output for 5.5.23
float(0.038948059082031) float(0.030189037322998)
Output for 5.5.22
float(0.036983013153076) float(0.030449151992798)
Output for 5.5.21
float(0.037872076034546) float(0.030011892318726)
Output for 5.5.20
float(0.03900408744812) float(0.029966115951538)
Output for 5.5.19
float(0.040734052658081) float(0.030348062515259)
Output for 5.5.18
float(0.046405076980591) float(0.036130905151367)
Output for 5.5.16
float(0.035017967224121) float(0.029828071594238)
Output for 5.5.15
float(0.048062801361084) float(0.032604932785034)
Output for 5.5.14
float(0.046879053115845) float(0.03537392616272)
Output for 5.5.13
float(0.053215980529785) float(0.033280849456787)
Output for 5.5.12
float(0.038799047470093) float(0.030170917510986)
Output for 5.5.11
float(0.041008949279785) float(0.032228946685791)
Output for 5.5.10
float(0.04325008392334) float(0.033626794815063)
Output for 5.5.9
float(0.046228170394897) float(0.032413959503174)
Output for 5.5.8
float(0.047853946685791) float(0.031033992767334)
Output for 5.5.7
float(0.044883966445923) float(0.030534029006958)
Output for 5.5.6
float(0.043341159820557) float(0.034003019332886)
Output for 5.5.5
float(0.041481971740723) float(0.032550096511841)
Output for 5.5.4
float(0.040374994277954) float(0.030865907669067)
Output for 5.5.3
float(0.04548192024231) float(0.030675888061523)
Output for 5.5.2
float(0.039963006973267) float(0.030452013015747)
Output for 5.5.1
float(0.036619186401367) float(0.029927968978882)
Output for 5.5.0
float(0.036948919296265) float(0.029825925827026)
Output for 5.4.45
float(0.043692827224731) float(0.033487796783447)
Output for 5.4.44
float(0.038274049758911) float(0.031589984893799)
Output for 5.4.43
float(0.045034885406494) float(0.034620046615601)
Output for 5.4.42
float(0.046802997589111) float(0.043120145797729)
Output for 5.4.41
float(0.040749073028564) float(0.031555891036987)
Output for 5.4.40
float(0.054560899734497) float(0.045695066452026)
Output for 5.4.39
float(0.041861057281494) float(0.03203010559082)
Output for 5.4.38
float(0.049022912979126) float(0.037333011627197)
Output for 5.4.37
float(0.043434858322144) float(0.031546831130981)
Output for 5.4.36
float(0.048173189163208) float(0.035506963729858)
Output for 5.4.35
float(0.03363299369812) float(0.030982971191406)
Output for 5.4.34
float(0.041830778121948) float(0.031683206558228)
Output for 5.4.32
float(0.03917407989502) float(0.030941009521484)
Output for 5.4.31
float(0.045967102050781) float(0.035696029663086)
Output for 5.4.30
float(0.042629957199097) float(0.031486988067627)
Output for 5.4.29
float(0.039530038833618) float(0.030356884002686)
Output for 5.4.28
float(0.043223142623901) float(0.032713174819946)
Output for 5.4.27
float(0.041253805160522) float(0.032047033309937)
Output for 5.4.26
float(0.045264959335327) float(0.034693002700806)
Output for 5.4.25
float(0.046156167984009) float(0.035453081130981)
Output for 5.4.24
float(0.048763036727905) float(0.036415100097656)
Output for 5.4.23
float(0.03898286819458) float(0.031322956085205)
Output for 5.4.22
float(0.043698787689209) float(0.03341007232666)
Output for 5.4.21
float(0.039463043212891) float(0.030509948730469)
Output for 5.4.20
float(0.045638084411621) float(0.031556129455566)
Output for 5.4.19
float(0.046272993087769) float(0.030946016311646)
Output for 5.4.18
float(0.04994797706604) float(0.036050081253052)
Output for 5.4.17
float(0.046051979064941) float(0.032036066055298)
Output for 5.4.16
float(0.048671007156372) float(0.031562089920044)
Output for 5.4.15
float(0.042470932006836) float(0.030544996261597)
Output for 5.4.14
float(0.043511867523193) float(0.030580043792725)
Output for 5.4.13
float(0.036517143249512) float(0.031177043914795)
Output for 5.4.12
float(0.043251991271973) float(0.031643867492676)
Output for 5.4.11
float(0.048372983932495) float(0.042330026626587)
Output for 5.4.10
float(0.047702074050903) float(0.035981893539429)
Output for 5.4.9
float(0.048355102539062) float(0.041661977767944)
Output for 5.4.8
float(0.04495906829834) float(0.033921957015991)
Output for 5.4.7
float(0.034514904022217) float(0.031325817108154)
Output for 5.4.6
float(0.035016059875488) float(0.031154155731201)
Output for 5.4.5
float(0.027500152587891) float(0.025000095367432)
Output for 5.4.4
float(0.032922983169556) float(0.029366970062256)
Output for 5.4.3
float(0.033405065536499) float(0.029593944549561)
Output for 5.4.2
float(0.033766031265259) float(0.034235000610352)
Output for 5.4.1
float(0.032734870910645) float(0.031128883361816)
Output for 5.4.0
float(0.036242961883545) float(0.032608985900879)
Output for 5.3.29
float(0.037111043930054) float(0.029197931289673)
Output for 5.3.28
float(0.041654109954834) float(0.029610872268677)
Output for 5.3.27
float(0.045921802520752) float(0.032773971557617)
Output for 5.3.26
float(0.047222852706909) float(0.03333592414856)
Output for 5.3.25
float(0.048054218292236) float(0.032762050628662)
Output for 5.3.24
float(0.041225910186768) float(0.028575897216797)
Output for 5.3.23
float(0.046689987182617) float(0.032896041870117)
Output for 5.3.22
float(0.054847002029419) float(0.037636041641235)
Output for 5.3.21
float(0.043858051300049) float(0.031249046325684)
Output for 5.3.20
float(0.041283845901489) float(0.029455900192261)
Output for 5.3.19
float(0.037727832794189) float(0.029404163360596)
Output for 5.3.18
float(0.030393123626709) float(0.023838043212891)
Output for 5.3.17
float(0.061071872711182) float(0.035299062728882)
Output for 5.3.16
float(0.037729978561401) float(0.02830982208252)
Output for 5.3.15
float(0.041225910186768) float(0.028162956237793)
Output for 5.3.14
float(0.034414052963257) float(0.028779983520508)
Output for 5.3.13
float(0.036399126052856) float(0.02783989906311)
Output for 5.3.12
float(0.033205986022949) float(0.027741193771362)
Output for 5.3.11
float(0.033945798873901) float(0.027865886688232)
Output for 5.3.10
float(0.033688068389893) float(0.031610012054443)
Output for 5.3.9
float(0.034373998641968) float(0.032543182373047)
Output for 5.3.8
float(0.033797979354858) float(0.031599998474121)
Output for 5.3.7
float(0.035114049911499) float(0.032342910766602)
Output for 5.3.6
float(0.034540891647339) float(0.032138109207153)
Output for 5.3.5
float(0.034441947937012) float(0.032422065734863)
Output for 5.3.4
float(0.04286789894104) float(0.039454936981201)
Output for 5.3.3
float(0.036860942840576) float(0.027590990066528)
Output for 5.3.2
float(0.037919044494629) float(0.03495979309082)
Output for 5.3.1
float(0.035150051116943) float(0.033002138137817)
Output for 5.3.0
float(0.034527063369751) float(0.03194785118103)
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/PnoLo 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/PnoLo on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/PnoLo on line 7
Process exited with code 255.