3v4l.org

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