3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number = sscanf('ABC123121234ABC', '%s%3s%2s%4s%s'); var_dump(vsprintf('%s%s-%s-%s%s', $number));
based on 17hE3
Output for 4.3.0 - 7.2.0
string(17) "ABC123121234ABC--"