3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = [ 'a' => '1', 'b' => '1', 'c' => '2', ]; $foo2 = array_combine($foo, $foo); var_dump($foo2); $foo3 = array_map(function($v) { return '#' . $v; }, $foo2); var_dump($foo3); $foo4 = array_fill_keys($foo3, $foo); var_dump($foo4);
based on 58riZ