3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $gender = ''; $array = array(); array_filter($array[$gender] = ucwords($gender)); print_r($array);
based on 8W4jG
Output for 5.3.20 - 7.3.0rc4
Warning: array_filter() expects parameter 1 to be array, string given in /in/ArJgb on line 6 Array ( [] => )