3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Nečum spaces to dash and LowerCase with PHP'; $separator = '-'; $str_replace = str_replace(' ', $separator, strtolower($str)); $wordwrap = wordwrap(strtolower($str), 1, $separator, 0); $test = iconv('ISO-8859-1','ASCII//TRANSLIT',$wordwrap); echo 'Original: ' . "\t" . $str . "\n"; echo 'str_replace: ' . "\t" . $str_replace . "\n"; echo 'wordwrap: ' . "\t" . $wordwrap . "\n"; echo 'test: ' . "\t" . $test . "\n";
Output for git.master, git.master_jit, rfc.property-hooks
Warning: iconv(): Wrong encoding, conversion from "ISO-8859-1" to "ASCII//TRANSLIT" is not allowed in /in/u9iV6 on line 8 Original: Nečum spaces to dash and LowerCase with PHP str_replace: nečum-spaces-to-dash-and-lowercase-with-php wordwrap: nečum-spaces-to-dash-and-lowercase-with-php test:

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.89 ms | 401 KiB | 8 Q