3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class a { public function test() { if (method_exists($this, 'init')) { $this->init(); } } } $a = new a; $s = microtime(true); for ($i = 0; $i<10000; $i++) { $a->test(); } var_dump(microtime(true) - $s);
Output for 7.2.0
float(0.0010890960693359)
Output for 7.1.7
float(0.00066900253295898)
Output for 7.1.6
float(0.0017049312591553)
Output for 7.1.5
float(0.0012638568878174)
Output for 7.1.0
float(0.0012679100036621)
Output for 7.0.20
float(0.00072383880615234)
Output for 7.0.14
float(0.0015461444854736)
Output for 7.0.6
float(0.00081920623779297)
Output for 7.0.5
float(0.00070095062255859)
Output for 7.0.4
float(0.0009160041809082)
Output for 7.0.3
float(0.0010287761688232)
Output for 7.0.2
float(0.00073790550231934)
Output for 7.0.1
float(0.0010921955108643)
Output for 7.0.0
float(0.00092911720275879)
Output for 5.6.28
float(0.0038440227508545)
Output for 5.6.21
float(0.0033760070800781)
Output for 5.6.20
float(0.0024960041046143)
Output for 5.6.19
float(0.002223014831543)
Output for 5.6.18
float(0.002155065536499)
Output for 5.6.17
float(0.0028259754180908)
Output for 5.6.16
float(0.0025660991668701)
Output for 5.6.15
float(0.0034940242767334)
Output for 5.6.14
float(0.003403902053833)
Output for 5.6.13
float(0.0025389194488525)
Output for 5.6.12
float(0.0028269290924072)
Output for 5.6.11
float(0.0024199485778809)
Output for 5.6.10
float(0.0035610198974609)
Output for 5.6.9
float(0.0033769607543945)
Output for 5.6.8
float(0.0033791065216064)
Output for 5.6.7
float(0.0037009716033936)
Output for 5.5.35
float(0.0035688877105713)
Output for 5.5.34
float(0.0041930675506592)
Output for 5.5.33
float(0.0026309490203857)
Output for 5.5.32
float(0.0025680065155029)
Output for 5.5.31
float(0.0031039714813232)
Output for 5.5.30
float(0.0028588771820068)
Output for 5.5.29
float(0.0022420883178711)
Output for 5.5.28
float(0.0036308765411377)
Output for 5.5.27
float(0.0035841464996338)
Output for 5.5.26
float(0.0031070709228516)
Output for 5.5.25
float(0.003587007522583)
Output for 5.5.24
float(0.0022609233856201)
Output for 5.4.45
float(0.0034241676330566)
Output for 5.4.44
float(0.0027179718017578)
Output for 5.4.23, 5.4.43
float(0.0030670166015625)
Output for 5.4.42
float(0.0035960674285889)
Output for 5.4.41
float(0.0039539337158203)
Output for 5.4.40
float(0.0033130645751953)
Output for 5.4.39
float(0.0036630630493164)
Output for 5.4.38
float(0.0033478736877441)
Output for 5.4.37
float(0.0030219554901123)
Output for 5.4.36
float(0.0038480758666992)
Output for 5.4.35
float(0.0036699771881104)
Output for 5.4.34
float(0.0036871433258057)
Output for 5.4.32
float(0.0032021999359131)
Output for 5.4.31
float(0.0036458969116211)
Output for 5.4.30
float(0.0036740303039551)
Output for 5.4.29
float(0.0039050579071045)
Output for 5.4.28
float(0.0022449493408203)
Output for 5.4.27
float(0.0025410652160645)
Output for 5.4.26
float(0.0034937858581543)
Output for 5.4.25
float(0.0022478103637695)
Output for 5.4.13, 5.4.24
float(0.0036780834197998)
Output for 5.4.22
float(0.0022320747375488)
Output for 5.4.21
float(0.0036640167236328)
Output for 5.4.20
float(0.0034639835357666)
Output for 5.4.19
float(0.0031280517578125)
Output for 5.4.18
float(0.0042240619659424)
Output for 5.4.17
float(0.0033121109008789)
Output for 5.4.16
float(0.0034420490264893)
Output for 5.4.15
float(0.0033128261566162)
Output for 5.4.14
float(0.0037269592285156)
Output for 5.4.12
float(0.003201961517334)
Output for 5.4.11
float(0.003662109375)
Output for 5.4.10
float(0.0037949085235596)
Output for 5.4.9
float(0.0034270286560059)
Output for 5.4.8
float(0.0036540031433105)
Output for 5.4.7
float(0.0036451816558838)
Output for 5.4.6
float(0.0037579536437988)
Output for 5.4.5
float(0.0036859512329102)
Output for 5.4.4
float(0.0037040710449219)
Output for 5.4.3
float(0.0040578842163086)
Output for 5.4.2
float(0.0030601024627686)
Output for 5.4.1
float(0.0038528442382812)
Output for 5.4.0
float(0.0035991668701172)
Output for 5.3.29
float(0.0048308372497559)
Output for 5.3.28
float(0.002810001373291)
Output for 5.3.27
float(0.0035879611968994)
Output for 5.3.26
float(0.0042259693145752)
Output for 5.3.25
float(0.0034158229827881)
Output for 5.3.24
float(0.0045180320739746)
Output for 5.3.23
float(0.0040040016174316)
Output for 5.3.22
float(0.0035109519958496)
Output for 5.3.21
float(0.0037031173706055)
Output for 5.3.20
float(0.004457950592041)
Output for 5.3.19
float(0.0039269924163818)
Output for 5.3.18
float(0.0047240257263184)
Output for 5.3.17
float(0.0046861171722412)
Output for 5.3.16
float(0.0048739910125732)
Output for 5.3.15
float(0.0037047863006592)
Output for 5.3.14
float(0.0043010711669922)
Output for 5.3.13
float(0.0042610168457031)
Output for 5.3.12
float(0.00465989112854)
Output for 5.3.11
float(0.0046720504760742)
Output for 5.3.10
float(0.0038602352142334)
Output for 5.3.9
float(0.0045549869537354)
Output for 5.3.8
float(0.0046899318695068)
Output for 5.3.7
float(0.0048670768737793)
Output for 5.3.6
float(0.0050289630889893)
Output for 5.3.5
float(0.0049760341644287)
Output for 5.3.4
float(0.0038509368896484)
Output for 5.3.3
float(0.0047500133514404)
Output for 5.3.2
float(0.0048329830169678)
Output for 5.3.1
float(0.0041358470916748)
Output for 5.3.0
float(0.0048680305480957)
Output for 5.2.17
float(0.0052711963653564)
Output for 5.2.16
float(0.0052289962768555)
Output for 5.2.15
float(0.0057590007781982)
Output for 5.2.14
float(0.0059940814971924)
Output for 5.2.13
float(0.0055339336395264)
Output for 5.2.12
float(0.0060460567474365)
Output for 5.2.11
float(0.0057070255279541)
Output for 5.2.10
float(0.0062308311462402)
Output for 5.2.9
float(0.0059959888458252)
Output for 5.2.8
float(0.0056998729705811)
Output for 5.2.7
float(0.0058739185333252)
Output for 5.2.6
float(0.0050771236419678)
Output for 5.2.5
float(0.0053629875183105)
Output for 5.2.4
float(0.0043489933013916)
Output for 5.2.3
float(0.0059161186218262)
Output for 5.2.2
float(0.0061938762664795)
Output for 5.2.1
float(0.0055210590362549)
Output for 5.2.0
float(0.0058450698852539)
Output for 5.1.6
float(0.0055460929870605)
Output for 5.1.5
float(0.0038721561431885)
Output for 5.1.4
float(0.0058059692382813)
Output for 5.1.3
float(0.0055880546569824)
Output for 5.1.2
float(0.0059280395507813)
Output for 5.1.1
float(0.0058691501617432)
Output for 5.1.0
float(0.0062580108642578)
Output for 5.0.5
float(0.0080020427703857)
Output for 5.0.4
float(0.0082178115844727)
Output for 5.0.3
float(0.007504940032959)
Output for 5.0.2
float(0.0084750652313232)
Output for 5.0.1
float(0.0066490173339844)
Output for 5.0.0
float(0.0083189010620117)
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/tLq9O on line 5
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/tLq9O on line 5
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/tLq9O on line 5
Process exited with code 255.