3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** * For this test someone has written a lot of crap PHP code! * List all the problems you can find with this code and why it is a problem * */ function countVowelsInFile($f) { $content = file_get_contents($f); $matches = array(); return preg_match_all('/[aeiou]/', $content, $matches); } countVowelsInFile(__FILE__);
Output for 4.3.0 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0