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('UTF-8','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
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: ne?um-spaces-to-dash-and-lowercase-with-php

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:
59.12 ms | 401 KiB | 8 Q