3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo substr(3.1416, 0, 2); echo substr(3.1416, -4); echo substr(55122, 0, 2);
based on oj6cC
Output for 4.3.0 - 7.2.0
3.141655