3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $uniqueId = '123456789'; $guid = substr($uniqueId,0,8)."-". substr($uniqueId,8,4)."-". substr($uniqueId,12,4)."-". substr($uniqueId,16,4)."-". substr($uniqueId,20,12); echo strtoupper($guid);
Output for 4.3.0 - 7.2.0
12345678-9---