3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $productStates = '1,3,3'; echo is_array($productStates); $array = explode(",",$productStates); print_r($array);
based on XJvLo
Output for 4.3.0 - 7.1.0
Array ( [0] => 1 [1] => 3 [2] => 3 )