3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = explode("/",'09/28/2007'); for($i=0;$i<2;$i++){ if($date[$i] < 10){ $date[$i] = '0'.$date[$i]; } } // echo $date[2].$date[0].$date[1]; echo count('000');
based on ndua9
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/33jgR on line 9 1
Output for 4.3.0 - 7.1.10
1