3v4l.org

run code in 200+ PHP versions simultaneously
<?php $gcd = gmp_gcd('12', '21'); echo gmp_strval($gcd);
Output for 5.6.30 - 7.4.0
3