3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "42.9384658354.3847658354...."; list ($id) = explode(".", $string, -2); var_dump($id);
based on THJZU
Output for 5.3.22 - 7.3.0beta1
string(2) "42"