3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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>"; }
Output for 5.3.0 - 7.1.0
Notice: Undefined index: newsthumb in /in/Z9soj on line 6
Output for 4.3.0 - 5.2.17
Notice: Undefined index: newsthumb in /in/Z9soj on line 6