3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public function read() { } } $test = new Test(); $i = 0; $start = microtime(true); while( $i < 1000000) { method_exists($test, 'read'); $i++; } $end = microtime(true); echo PHP_EOL . $end - $start;
based on DCEnp
Output for 7.2.11
0.03714394569397
Output for 7.2.10
0.048546075820923
Output for 7.2.9
0.067134141921997
Output for 7.2.8
0.042382001876831
Output for 7.2.7
0.16673398017883
Output for 7.2.6
0.089843988418579
Output for 7.2.5
0.040570020675659
Output for 7.2.4
0.081716060638428
Output for 7.2.3
0.05988597869873
Output for 7.2.2
0.13884115219116
Output for 7.2.1
0.079452037811279
Output for 7.2.0
0.084463119506836
Output for 7.1.23
0.060455083847046
Output for 7.1.22
0.039205074310303
Output for 7.1.21
0.094446897506714
Output for 7.1.20
0.061823129653931
Output for 7.1.19
0.094933032989502
Output for 7.1.18
0.052388191223145
Output for 7.1.17
0.12221097946167
Output for 7.1.16
0.10093712806702
Output for 7.1.15
0.10170912742615
Output for 7.1.14
0.04474401473999
Output for 7.1.13
0.052130937576294
Output for 7.1.12
0.098213911056519
Output for 7.1.11
0.12391400337219
Output for 7.1.10
0.065291881561279
Output for 7.1.9
0.078114986419678
Output for 7.1.8
0.087892055511475
Output for 7.1.7
0.14951515197754
Output for 7.1.6
0.096189975738525
Output for 7.1.5
0.15262913703918
Output for 7.1.4
0.11683106422424
Output for 7.1.3
0.10539603233337
Output for 7.1.2
0.089366912841797
Output for 7.1.1
0.099745035171509
Output for 7.1.0
0.070161104202271
Output for 7.0.28
0.088835954666138
Output for 5.6.38
0.27916383743286