3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Convert spaces to dash and LowerCase with PHP'; $str_lower = strtolower($str); $separator = '-'; $str_replace = str_replace(' ', $separator, $str_lower); $wordwrap = wordwrap($str_lower, 1, $separator, 0); echo 'Original: ' . "\t" . $str . "\n"; echo 'str_lower: ' . "\t" . $str_lower . "\n"; echo 'str_replace: ' . "\t" . $str_replace . "\n"; echo 'wordwrap: ' . "\t" . $wordwrap . "\n";
Output for git.master_jit, git.master, rfc.property-hooks
Original: Convert spaces to dash and LowerCase with PHP str_lower: convert spaces to dash and lowercase with php str_replace: convert-spaces-to-dash-and-lowercase-with-php wordwrap: convert-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:
149.73 ms | 406 KiB | 5 Q