3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $noAssetIds = array(); if(count($noAssetIds)){ echo "meeeeh"; } $noAssetIds = "dadssdadsa"; if(count($noAssetIds)){ var_dump(count($noAssetIds)); }
Output for 7.2.0 - 7.3.0rc4
Warning: count(): Parameter must be an array or an object that implements Countable in /in/XmIfU on line 10 Warning: count(): Parameter must be an array or an object that implements Countable in /in/XmIfU on line 11 int(1)
Output for 4.3.0 - 7.1.20
int(1)