3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = html_entity_decode("&nbsp;"); print "The Problem: \n\n"; print ORD($string[0]); print "\n"; print ORD($string[1]); print "\n\n"; $string1 = str_replace("\u{c2a0}", "", $string); $string2 = preg_replace('/^(\\s|\\xC2\\xA0)+|(\\s|\\xC2\\xA0)+$/', '', $string); print "Mark Baker's Solution |" . $string1 . "|\n"; print "Codesmith's Solution |" . $string2 . "|\n";
Output for git.master, git.master_jit, rfc.property-hooks
The Problem: 194 160 Mark Baker's Solution | | Codesmith's Solution ||

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:
27.3 ms | 405 KiB | 5 Q