3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array( "name"); $array2 = array( "a" => "first", "b" => "something", "letsc" ); print_r(array_fill_keys($array2, $array1));
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [first] => Array ( [0] => name ) [something] => Array ( [0] => name ) [letsc] => Array ( [0] => name ) )
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function array_fill_keys() in /in/iX5UK on line 11
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_fill_keys() in /in/iX5UK on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_fill_keys() in /in/iX5UK on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_fill_keys() in /in/iX5UK on line 11