3v4l.org

run code in 300+ PHP versions simultaneously
<?php $decimal = gmp_init('123E-5');
Output for 8.0.2 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught ValueError: gmp_init(): Argument #1 ($num) is not an integer string in /in/3Z2m1:3 Stack trace: #0 /in/3Z2m1(3): gmp_init('123E-5') #1 {main} thrown in /in/3Z2m1 on line 3
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.33, 8.0.13
Fatal error: Uncaught Error: Call to undefined function gmp_init() in /in/3Z2m1:3 Stack trace: #0 {main} thrown in /in/3Z2m1 on line 3
Process exited with code 255.
Output for 8.0.0 - 8.0.1
Fatal error: Uncaught TypeError: gmp_init(): Argument #1 ($num) is not an integer string in /in/3Z2m1:3 Stack trace: #0 /in/3Z2m1(3): gmp_init('123E-5') #1 {main} thrown in /in/3Z2m1 on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32
Warning: gmp_init(): Unable to convert variable to GMP - string is not an integer in /in/3Z2m1 on line 3

preferences:
152.58 ms | 402 KiB | 214 Q