3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "1-0-1-0-0"; $b = explode("-", $a); print_r($b);
Output for 4.3.0 - 7.1.0
Array ( [0] => 1 [1] => 0 [2] => 1 [3] => 0 [4] => 0 )