3v4l.org

run code in 150+ 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, hhvm-3.12.0, 7.0.0 - 7.1.0
0
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.5.24 - 5.6.28
-9223372036854775808