3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = array('test', '3', 'google.com'); $bar = array('title', 'rating', 'url', 'appropriate', 'seen'); if (count($foo) < count($bar)) { $foo = array_fill(count($foo), count($bar) - count($foo), ''); } var_dump($foo);die; $foobar = array_combine($bar, $foo); var_dump($foobar);
based on Y7W3q
Output for 4.3.0 - 7.2.0
array(2) { [3]=> string(0) "" [4]=> string(0) "" }