3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tempID = "1234512312345"; $firsttwodigits = substr($tempID, 0, 2); $secondtwodigits =substr($tempID, 2, 4); echo $firsttwodigits; echo $secondtwodigits; ?>
based on mN3Wa
Output for 4.3.0 - 7.2.0
123451