3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = gmp_import("\0\1\2"); echo gmp_strval($number) . "\n";
Output for 5.6.1 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.28, 7.4.0 - 7.4.22, 8.0.0 - 8.0.8
258
Output for 5.5.0 - 5.5.38, 5.6.0
Fatal error: Call to undefined function gmp_import() in /in/HOrKs on line 3
Process exited with code 255.

preferences:
583.18 ms | 460 KiB | 5 Q