3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = array('test', '3', 'google.com'); $bar = array('title', 'rating', 'url', 'appropriate', 'seen'); if (count($foo) < count($bar)) { $foo = array_pad($foo, count($bar), ''); } $foobar = array_combine($bar, $foo); var_dump($foobar);

preferences:
71.54 ms | 402 KiB | 5 Q