3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mac = '00:15 :65:3D:E5:BC'; //$mac = strtoupper(str_replace(" \t\n\r\0\x0B-:.", "", $mac)); $mac = strtoupper(preg_replace("/[\s-:.]*/",'', $mac)); echo $mac;
Output for 4.3.0 - 7.1.0
0015653DE5BC