3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class dyncall { public function __call( $name, $args ) { return $args[0]; } } class declaredcall { public function call( $value ) { return $value; } } $results = array(); $instance = new dyncall(); $start = microtime(true); for ($i = 0; $i < 100000; $i++) { $results[] = $instance->call('foo'); } $end = microtime(true); var_dump($end - $start); $results = array(); $instance = new declaredcall(); $start = microtime(true); for ($i = 0; $i < 100000; $i++) { $results[] = $instance->call('foo'); } $end = microtime(true); var_dump($end - $start);
Output for 7.1.0
float(0.010758876800537) float(0.0046870708465576)
Output for 7.0.14
float(0.017839908599854) float(0.0074360370635986)
Output for 7.0.10
float(0.031911134719849) float(0.021320104598999)
Output for 7.0.9
float(0.029561042785645) float(0.0070559978485107)
Output for 7.0.8
float(0.01620888710022) float(0.0069179534912109)
Output for 7.0.7
float(0.018182992935181) float(0.0074529647827148)
Output for 7.0.6
float(0.029233932495117) float(0.0075819492340088)
Output for 7.0.5
float(0.016849040985107) float(0.014832019805908)
Output for 7.0.4
float(0.013057947158813) float(0.022768974304199)
Output for 7.0.3
float(0.043384075164795) float(0.024096012115479)
Output for 7.0.2
float(0.030111074447632) float(0.01369309425354)
Output for 7.0.1
float(0.012500047683716) float(0.006458044052124)
Output for 7.0.0
float(0.013378858566284) float(0.0056028366088867)
Output for 5.6.28
float(0.06666898727417) float(0.029872894287109)
Output for 5.6.25
float(0.063210964202881) float(0.025579929351807)
Output for 5.6.24
float(0.05698299407959) float(0.022812843322754)
Output for 5.6.23
float(0.059553861618042) float(0.022193908691406)
Output for 5.6.22
float(0.058720111846924) float(0.021500825881958)
Output for 5.6.21
float(0.05639910697937) float(0.021882057189941)
Output for 5.6.20
float(0.049046993255615) float(0.021310091018677)
Output for 5.6.19
float(0.045387983322144) float(0.020979881286621)
Output for 5.6.18
float(0.049040079116821) float(0.02685284614563)
Output for 5.6.17
float(0.049581050872803) float(0.020948886871338)
Output for 5.6.16
float(0.046344995498657) float(0.021103858947754)
Output for 5.6.15
float(0.054051876068115) float(0.022439002990723)
Output for 5.6.14
float(0.041338920593262) float(0.020462036132812)
Output for 5.6.13
float(0.054815053939819) float(0.021046161651611)
Output for 5.6.12
float(0.046364068984985) float(0.021875858306885)
Output for 5.6.11
float(0.045691013336182) float(0.018732786178589)
Output for 5.6.10
float(0.049202919006348) float(0.020162105560303)
Output for 5.6.9
float(0.079800844192505) float(0.025037050247192)
Output for 5.6.8
float(0.057497024536133) float(0.021511077880859)
Output for 5.6.7
float(0.062278032302856) float(0.024084091186523)
Output for 5.6.6
float(0.05325984954834) float(0.022902965545654)
Output for 5.6.5
float(0.065200090408325) float(0.025054931640625)
Output for 5.6.4
float(0.058104991912842) float(0.020817041397095)
Output for 5.6.3
float(0.061049938201904) float(0.024027109146118)
Output for 5.6.2
float(0.060585021972656) float(0.023205041885376)
Output for 5.6.1
float(0.050256013870239) float(0.022204875946045)
Output for 5.6.0
float(0.064614057540894) float(0.022513866424561)
Output for 5.5.38
float(0.057536125183105) float(0.022135972976685)
Output for 5.5.37
float(0.068008899688721) float(0.025244951248169)
Output for 5.5.36
float(0.054754972457886) float(0.021225929260254)
Output for 5.5.35
float(0.058890104293823) float(0.023017883300781)
Output for 5.5.34
float(0.04951000213623) float(0.022449970245361)
Output for 5.5.33
float(0.048400163650513) float(0.019869804382324)
Output for 5.5.32
float(0.048172950744629) float(0.02097487449646)
Output for 5.5.31
float(0.04828405380249) float(0.020572185516357)
Output for 5.5.30
float(0.047918081283569) float(0.021460056304932)
Output for 5.5.29
float(0.04712700843811) float(0.02116584777832)
Output for 5.5.28
float(0.039155960083008) float(0.018156051635742)
Output for 5.5.27
float(0.048760890960693) float(0.022636890411377)
Output for 5.5.26
float(0.051225185394287) float(0.022588014602661)
Output for 5.5.25
float(0.069331169128418) float(0.020751953125)
Output for 5.5.24
float(0.059029102325439) float(0.0227210521698)
Output for 5.5.23
float(0.055172920227051) float(0.020522117614746)
Output for 5.5.22
float(0.05854606628418) float(0.022664070129395)
Output for 5.5.21
float(0.053280830383301) float(0.020483016967773)
Output for 5.5.20
float(0.065252065658569) float(0.024617910385132)
Output for 5.5.19
float(0.059714078903198) float(0.020859003067017)
Output for 5.5.18
float(0.050729990005493) float(0.020147085189819)
Output for 5.5.16
float(0.061954975128174) float(0.023133993148804)
Output for 5.5.15
float(0.069052934646606) float(0.025994062423706)
Output for 5.5.14
float(0.046422004699707) float(0.01998496055603)
Output for 5.5.13
float(0.056976079940796) float(0.021656036376953)
Output for 5.5.12
float(0.053412914276123) float(0.02017617225647)
Output for 5.5.11
float(0.058268070220947) float(0.02291202545166)
Output for 5.5.10
float(0.063024044036865) float(0.022881031036377)
Output for 5.5.9
float(0.054779052734375) float(0.022490978240967)
Output for 5.5.8
float(0.070065021514893) float(0.026015043258667)
Output for 5.5.7
float(0.065209150314331) float(0.024712085723877)
Output for 5.5.6
float(0.058365106582642) float(0.024055004119873)
Output for 5.5.5
float(0.066495895385742) float(0.025490999221802)
Output for 5.5.4
float(0.052825927734375) float(0.020541906356812)
Output for 5.5.3
float(0.061053991317749) float(0.022589206695557)
Output for 5.5.2
float(0.059048891067505) float(0.026494979858398)
Output for 5.5.1
float(0.052206993103027) float(0.020071983337402)
Output for 5.5.0
float(0.066774129867554) float(0.02647590637207)
Output for 5.4.45
float(0.047372817993164) float(0.01999306678772)
Output for 5.4.44
float(0.047775030136108) float(0.021138906478882)
Output for 5.4.43
float(0.05956506729126) float(0.02647590637207)
Output for 5.4.42
float(0.064615964889526) float(0.023766040802002)
Output for 5.4.41
float(0.058006048202515) float(0.022119998931885)
Output for 5.4.40
float(0.0519118309021) float(0.023191928863525)
Output for 5.4.39
float(0.050266981124878) float(0.01979398727417)
Output for 5.4.38
float(0.051275014877319) float(0.023977041244507)
Output for 5.4.37
float(0.060422897338867) float(0.02129602432251)
Output for 5.4.36
float(0.063270092010498) float(0.023875951766968)
Output for 5.4.35
float(0.07600212097168) float(0.027836799621582)
Output for 5.4.34
float(0.062717914581299) float(0.023226022720337)
Output for 5.4.32
float(0.055133819580078) float(0.021906137466431)
Output for 5.4.31
float(0.056200981140137) float(0.020545959472656)
Output for 5.4.30
float(0.062124967575073) float(0.024603843688965)
Output for 5.4.29
float(0.056396007537842) float(0.02305793762207)
Output for 5.4.28
float(0.069159984588623) float(0.027228832244873)
Output for 5.4.27
float(0.055372953414917) float(0.020040988922119)
Output for 5.4.26
float(0.056630849838257) float(0.023671865463257)
Output for 5.4.25
float(0.071803092956543) float(0.027192831039429)
Output for 5.4.24
float(0.074189186096191) float(0.026066064834595)
Output for 5.4.23
float(0.058219909667969) float(0.021559000015259)
Output for 5.4.22
float(0.061644077301025) float(0.023814916610718)
Output for 5.4.21
float(0.052546977996826) float(0.020004034042358)
Output for 5.4.20
float(0.0537109375) float(0.020395994186401)
Output for 5.4.19
float(0.065941095352173) float(0.025545120239258)
Output for 5.4.18
float(0.060902833938599) float(0.022629976272583)
Output for 5.4.17
float(0.064582824707031) float(0.025470018386841)
Output for 5.4.16
float(0.047732830047607) float(0.020541906356812)
Output for 5.4.15
float(0.055795907974243) float(0.022362947463989)
Output for 5.4.14
float(0.088321924209595) float(0.031440019607544)
Output for 5.4.13
float(0.056911945343018) float(0.021351099014282)
Output for 5.4.12
float(0.070661067962646) float(0.026036024093628)
Output for 5.4.11
float(0.057178974151611) float(0.0208420753479)
Output for 5.4.10
float(0.05622410774231) float(0.02158784866333)
Output for 5.4.9
float(0.063560962677002) float(0.022933959960938)
Output for 5.4.8
float(0.068140029907227) float(0.027208089828491)
Output for 5.4.7
float(0.062813997268677) float(0.020751953125)
Output for 5.4.6
float(0.046373844146729) float(0.021085023880005)
Output for 5.4.5
float(0.052294015884399) float(0.02231502532959)
Output for 5.4.4
float(0.04722785949707) float(0.021158933639526)
Output for 5.4.3
float(0.053382158279419) float(0.021896123886108)
Output for 5.4.2
float(0.053785085678101) float(0.024157047271729)
Output for 5.4.1
float(0.06055212020874) float(0.023370027542114)
Output for 5.4.0
float(0.051382064819336) float(0.019881963729858)
Output for 5.3.29
float(0.07628607749939) float(0.029829025268555)
Output for 5.3.28
float(0.070924997329712) float(0.02655816078186)
Output for 5.3.27
float(0.07607889175415) float(0.028163194656372)
Output for 5.3.26
float(0.061094999313354) float(0.027312994003296)
Output for 5.3.25
float(0.059854030609131) float(0.027466058731079)
Output for 5.3.24
float(0.072749137878418) float(0.030317068099976)
Output for 5.3.23
float(0.068013906478882) float(0.030081987380981)
Output for 5.3.22
float(0.076923847198486) float(0.030868053436279)
Output for 5.3.21
float(0.070449113845825) float(0.028491020202637)
Output for 5.3.20
float(0.061975955963135) float(0.027839183807373)
Output for 5.3.19
float(0.065063953399658) float(0.032199859619141)
Output for 5.3.18
float(0.072216033935547) float(0.031550168991089)
Output for 5.3.17
float(0.063043117523193) float(0.027498006820679)
Output for 5.3.16
float(0.082837104797363) float(0.032212972640991)
Output for 5.3.15
float(0.071122169494629) float(0.030584096908569)
Output for 5.3.14
float(0.058817148208618) float(0.027879953384399)
Output for 5.3.13
float(0.064133882522583) float(0.028229951858521)
Output for 5.3.12
float(0.065967082977295) float(0.027212142944336)
Output for 5.3.11
float(0.068670034408569) float(0.026735067367554)
Output for 5.3.10
float(0.079777956008911) float(0.032822847366333)
Output for 5.3.9
float(0.061594009399414) float(0.027306079864502)
Output for 5.3.8
float(0.078290939331055) float(0.034306049346924)
Output for 5.3.7
float(0.058910131454468) float(0.027437925338745)
Output for 5.3.6
float(0.089593887329102) float(0.036485910415649)
Output for 5.3.5
float(0.070380926132202) float(0.026780128479004)
Output for 5.3.4
float(0.069210052490234) float(0.027345895767212)
Output for 5.3.3
float(0.068474054336548) float(0.027801990509033)
Output for 5.3.2
float(0.072608947753906) float(0.028157949447632)
Output for 5.3.1
float(0.066488981246948) float(0.027634143829346)
Output for 5.3.0
float(0.065237998962402) float(0.027559041976929)
Output for 5.2.17
float(0.086499929428101) float(0.035323143005371)
Output for 5.2.16
float(0.084954977035522) float(0.031507015228271)
Output for 5.2.15
float(0.080899000167847) float(0.039784908294678)
Output for 5.2.14
float(0.084506988525391) float(0.057538986206055)
Output for 5.2.13
float(0.080097198486328) float(0.032506942749023)
Output for 5.2.12
float(0.095173835754395) float(0.037744998931885)
Output for 5.2.11
float(0.08598804473877) float(0.034404993057251)
Output for 5.2.10
float(0.090380907058716) float(0.039076089859009)
Output for 5.2.9
float(0.071999788284302) float(0.030861139297485)
Output for 5.2.8
float(0.075647115707397) float(0.035372972488403)
Output for 5.2.7
float(0.084362030029297) float(0.034635066986084)
Output for 5.2.6
float(0.08021092414856) float(0.033574104309082)
Output for 5.2.5
float(0.10186982154846) float(0.03869104385376)
Output for 5.2.4
float(0.10107207298279) float(0.043092966079712)
Output for 5.2.3
float(0.08092188835144) float(0.036139011383057)
Output for 5.2.2
float(0.065977096557617) float(0.035680055618286)
Output for 5.2.1
float(0.066854000091553) float(0.027420043945312)
Output for 5.2.0
float(0.084679126739502) float(0.034832954406738)
Output for 5.1.6
float(0.090878963470459) float(0.042850971221924)
Output for 5.1.5
float(0.08673095703125) float(0.041263103485107)
Output for 5.1.4
float(0.081215858459473) float(0.038533926010132)
Output for 5.1.3
float(0.079377889633179) float(0.037990093231201)
Output for 5.1.2
float(0.093603134155273) float(0.043989896774292)
Output for 5.1.1
float(0.095530986785889) float(0.044543981552124)
Output for 5.1.0
float(0.093290090560913) float(0.045157909393311)
Output for 5.0.5
float(0.11054182052612) float(0.056216955184937)
Output for 5.0.4
float(0.12132692337036) float(0.057365894317627)
Output for 5.0.3
float(0.10299491882324) float(0.053247213363647)
Output for 5.0.2
float(0.12727808952332) float(0.059491157531738)
Output for 5.0.1
float(0.11681580543518) float(0.054286003112793)
Output for 5.0.0
float(0.093466997146606) float(0.056914091110229)
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/4EJnP on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/4EJnP on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/4EJnP on line 3
Process exited with code 255.