3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo implements Countable { public function count() { return +INF; } } $foo = new Foo; echo count($foo);
Output for 5.3.7 - 5.4.45, 7.0.0 - 7.2.6
0
Output for 5.5.24 - 5.6.28
-9223372036854775808