3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Header/Footer"; $special_char_find = array( "!","#","$","%","&","(",")","*","+", ",","-",".","/",":",";","<","=",">", "?","@","[","]","^","{","|","}","~" ); $special_char_replace = array( "c33","c35","c36","c37","c38","c40","c41","c42","c43", "c44","c45","c46","c47","c58","c59","c60","c61","c62", "c63","c64","c91","c93","c94","c123","c124","c125","c126" ); $str = str_replace($special_char_find, $special_char_replace, $str); $str = strtolower(preg_replace("/[^A-Za-z0-9_]/", '', str_replace(' ', '_', trim($str)))); $str = trim($str, "_"); echo $str;
Output for git.master, git.master_jit, rfc.property-hooks
headerc47footer

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