3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('/(\.\d*?)0+$/','$1','21.00200');

preferences:
40.78 ms | 402 KiB | 5 Q