3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $A = ""; $Ar = explode("µµ", substr($A, 1, -1)); print_r($Ar); $A = count($Ar) > 0 ? "µ".implode("µµ", $Ar)."µ" : ""; print_r($A); $Ar = explode("µµ", substr($A, 1, -1)); print_r($Ar); print_r(explode("~", $Ar[0])); $A = count($Arrr) > 0 ? "µ".implode("µµ", $Arrr)."µ" : ""; print_r($A);
based on NAseO
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => ) µµArray ( [0] => �� ) Array ( [0] => �� ) Notice: Undefined variable: Arrr in /in/VI5bu on line 10
Output for 4.3.0 - 5.0.3
Array ( [0] => ) µµArray ( [0] => �� ) Array ( [0] => �� ) Notice: Undefined variable: Arrr in /in/VI5bu on line 10