3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file_name = 'whatever.zip'; $file_types = array("zip" => "Application/Octet-Stream"); $file_extension = pathinfo($file_name, PATHINFO_EXTENSION); echo $file_types[$file_extension]; // displays Application/Octet-Stream ?>
Output for 4.3.2 - 7.1.0
Application/Octet-Stream
Output for 4.3.0 - 4.3.1

Process exited with code 139.