3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allowedExts = array("gif", "jpeg", "jpg", "png"); $extension = end(explode(".", $_FILES["file"]["name"])); if (($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/jpg") || ($_FILES["file"]["type"] == "image/pjpeg") || ($_FILES["file"]["type"] == "image/x-png") || ($_FILES["file"]["type"] == "image/png") && ($_FILES["file"]["size"] < 60000) && in_array($extension, $allowedExts))
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected end of file in /in/Jj3vU on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected $end in /in/Jj3vU on line 11
Process exited with code 255.

preferences:
166.89 ms | 1395 KiB | 47 Q