3v4l.org

run code in 300+ PHP versions simultaneously
<?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); return preg_match_all('/[aeiou]/', $content); } countVowelsInFile(__FILE__);

preferences:
73.95 ms | 402 KiB | 5 Q