3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $src = array('foo : bar', 'foo...bar'); $lines = 0; while ($lines < sizeof($src)) { $words += count($src[$i]); $i++; } echo "Lines: $i - Words: $words";