3v4l.org

run code in 200+ PHP versions simultaneously
<?php $item = array( 'image 6 alt', 'image 6 title', 'public:///image.png', ); $values = array ( 'fid' => '2', 'uid' => '0', 'filename' => 'image.png', 'uri' => 'public:///image.png', 'filemime' => 'image/png', 'filesize' => '333', 'status' => '1', 'timestamp' => '1541320113', 'alt' => ' image 6 alt', 'title' => ' image 6 title', 'width' => '140', 'height' => '100', ); foreach ($item as $value) { debug(in_array($value, $values)); }