3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(count(123)); //int(1) var_dump(count(new stdclass)); //int(1) var_dump(count('hello world')); //int(1) var_dump(count(null)); //int(0)

preferences:
13.65 ms | 404 KiB | 5 Q