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>"; }
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Parse error: syntax error, unexpected ',' in /in/c8a7t on line 5
Process exited with code 255.

preferences:
181.2 ms | 1387 KiB | 53 Q