3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = 1234512312345; echo substr($data, 0, 5); vprintf("(%d)-%d-%d",sscanf($data, "%5d%3d%5d")); ?>
based on cK1Hk
Output for 4.3.0 - 7.1.0
12345(12345)-123-12345