3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php 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 '&&' (T_BOOLEAN_AND) in /in/ZGKqV on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_BOOLEAN_AND in /in/ZGKqV on line 11
Process exited with code 255.