3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [['x'], ['y'], ['z1'], 1, 2, 3, 4, 5, 'some text']; $time = microtime(true); for ($i=0; $i<1000000; $i++) { \count($a); } echo (microtime(true) - $time) . "\n"; $time = microtime(true); for ($i=0; $i<1000000; $i++) { count($a); } echo (microtime(true) - $time) . "\n";
based on QaY2t
Output for 7.3.3
0.018960952758789 0.018648147583008
Output for 7.3.2
0.015084981918335 0.015208959579468
Output for 7.3.1
0.021299123764038 0.024616956710815
Output for 7.3.0
0.015552043914795 0.014485120773315
Output for 7.2.16
0.018480062484741 0.018332004547119
Output for 7.2.15
0.018985033035278 0.018866777420044
Output for 7.2.14
0.019148111343384 0.015299081802368
Output for 7.2.13
0.01935601234436 0.015035152435303
Output for 7.2.12
0.018977880477905 0.017170906066895
Output for 7.2.11
0.017672061920166 0.014569997787476
Output for 7.2.10
0.018611907958984 0.018073081970215
Output for 7.2.9
0.022008180618286 0.014545917510986
Output for 7.2.8
0.014533042907715 0.014065027236938
Output for 7.2.7
0.014366149902344 0.014358997344971
Output for 7.2.6
0.018326997756958 0.018288135528564
Output for 7.2.5
0.01886510848999 0.017952919006348
Output for 7.2.4
0.017422914505005 0.017218112945557
Output for 7.2.3
0.032058954238892 0.02171802520752
Output for 7.2.2
0.02577805519104 0.018680095672607
Output for 7.2.1
0.018979072570801 0.017685890197754
Output for 7.2.0
0.020060777664185 0.013435125350952
Output for 7.1.27
0.025516986846924 0.021568059921265
Output for 7.1.26
0.022567987442017 0.025588989257812
Output for 7.1.25
0.036815166473389 0.032598972320557