3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach ($files as $file) { $fileParts = pathinfo($file); if('application/zip' == mime_content_type($file)) $this->medias->unzipAndFilterImage($username, $file); }
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
Notice: Undefined variable: files in /in/hlvCL on line 3 Warning: Invalid argument supplied for foreach() in /in/hlvCL on line 3
Output for hhvm-3.15.4
Notice: Undefined variable: files in /in/hlvCL on line 7 Warning: Invalid argument supplied for foreach() in /in/hlvCL on line 7