3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $truc = new Stdclass; $truc->hello = " "; $truc->a = function(){}; echo count($truc);
based on NGZE9
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/5N8eN on line 6 1
Output for 5.3.19 - 7.1.10
1