3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $Arrr = array(1); $A = count($Arrr) > 0 ? "µ".implode("µµ", $Arrr)."µ" : ""; print_r($A); $Ar = explode("µµ", substr($A, 1, -1)); print_r($Ar); $A = count($Arrr) > 0 ? "µ".implode("µµ", $Arrr)."µ" : ""; print_r($A); $Ar = explode("µµ", substr($A, 1, -1)); print_r($Ar); $A = count($Arrr) > 0 ? "µ".implode("µµ", $Arrr)."µ" : ""; print_r($A);
based on csCq1
Output for 4.3.0 - 7.1.0
µ1µArray ( [0] => �1� ) µ1µArray ( [0] => �1� ) µ1µ