3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'This is a string'; echo substr($string, 0, -1);
based on JkENL
Output for 5.3.19 - 5.6.18, 5.6.20 - 7.2.0
This is a strin
Output for 5.6.19

Process exited with code 137.