3v4l.org

run code in 200+ php & hhvm versions
<?php $array = [ "primary" => "#6ca6d9", "success" => "#479d63", "info" => "#5bc0de", "warning" => "#F39124", "danger" => "#d9695f", "purple" => "#fd44c7", "light-blue" => "#00b3ec", "blue" => "#026d8f", "green" => "#9ac333", "red" => "#fe2c78", ]; $a = array_keys($array); var_dump(array_combine($a, $a));
Output for 5.4.13 - 7.3.1
array(10) { ["primary"]=> string(7) "primary" ["success"]=> string(7) "success" ["info"]=> string(4) "info" ["warning"]=> string(7) "warning" ["danger"]=> string(6) "danger" ["purple"]=> string(6) "purple" ["light-blue"]=> string(10) "light-blue" ["blue"]=> string(4) "blue" ["green"]=> string(5) "green" ["red"]=> string(3) "red" }
Output for 5.3.23 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/063At on line 2
Process exited with code 255.