3v4l.org

run code in 200+ PHP versions simultaneously
<?php $str = "thin"; echo chop("thin", '-webfont') . PHP_EOL; echo chop("hairline", '-webfont'). PHP_EOL;
based on akN5v
Output for 7.1.25 - 7.4.0
thi hairli