3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $line=" minchia= cazzo\=culo \= figa"; $parts=mb_split("\s*(?<!\\\)=\s*",$line); print_r($parts); echo mb_ereg_replace("\\\=", "=", $parts[1]);
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => minchia [1] => cazzo\=culo \= figa ) cazzo=culo = figa
Output for 4.3.4 - 4.4.9
Warning: mb_split(): mbregex compile err: undefined (?...) sequence in /in/Pf0si on line 5
Output for 4.3.2 - 4.3.3
Fatal error: Call to undefined function: mb_split() in /in/Pf0si on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mb_split() in /in/Pf0si on line 5