3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'C000000001204'; $str = preg_replace('/^(G?C)0*/', '$1', $str); echo $str;
Output for 4.3.0 - 7.1.0
C1204