3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var_from_loop = "true,true,true,false,false"; $arr = explode("," , $var_from_loop); print_r(array_count_values($arr));

preferences:
23.57 ms | 406 KiB | 5 Q