3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array('button','chechbox','color','text','password','url','radio','submit'); $condition = 0; $type='colors'; foreach ($array as $value){ if ($value==$type){ $condition +=1; } echo $condition; } ?>
based on YaVmv
Output for 4.3.0 - 7.2.0
00000000