3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '123456789'; $b = '987654321'; $gcd = gmp_lcm($a, $b); echo gmp_strval($gcd);
based on mMlJN
Output for 7.3.0 - 7.3.24, 7.4.0 - 7.4.12, 8.0.0
13548070123626141
Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.33
Fatal error: Uncaught Error: Call to undefined function gmp_lcm() in /in/sLrvf:5 Stack trace: #0 {main} thrown in /in/sLrvf on line 5
Process exited with code 255.