3v4l.org

run code in 300+ PHP versions simultaneously
<?php $error = array(); $allowedExts = array("jpg", "jpeg", "gif", "png"); if (!in_array($_FILES["newsthumb"]['type'], $allowedExts) || !in_array($_FILES["newsmain"]['type'], $allowedExts)) { $error[] = "One/Both of the files are too large.<br>"; }

preferences:
39.01 ms | 402 KiB | 5 Q