3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $siren = 542012000023; echo substr((string)$siren, 0, 9);
based on UgENt
Output for 5.3.19 - 7.2.0
542012000