3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = gmp_import('36014248909954109151931436651976575481738584203562527565448248229916856906116'); $xCubed = gmp_pow($x, 3); var_dump($xCubed);
Output for 8.5.1
Fatal error: Uncaught Error: Call to undefined function gmp_import() in /in/lnhXp:3 Stack trace: #0 {main} thrown in /in/lnhXp on line 3
Process exited with code 255.
Output for 8.1.32, 8.2.0 - 8.2.25, 8.2.27 - 8.2.29, 8.3.0 - 8.3.13, 8.3.15 - 8.3.28, 8.4.2 - 8.4.14, 8.4.16, 8.5.0
object(GMP)#2 (1) { ["num"]=> string(555) "160997443042812530303654515367115057604388182515196611820819959430612583610716518769141489970047368267775228745204689418145928913126463352081755565419920129192906248132116472853330513965711746146227255258424670556790891713681617255587215542561580629932855568568574415059401067282956293779687030861474330368758321269820208418364053159869676717633101801763917322170705334984559535570609226396654935408757582614006243360591398376836890437940809443533850649861505803864323135252751459529373213816303378618647795323133512014630839969718809460725350863157777176" }
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 8.2.26, 8.3.14, 8.4.1
Fatal error: Uncaught ValueError: base and exponent overflow in /in/lnhXp:4 Stack trace: #0 /in/lnhXp(4): gmp_pow(Object(GMP), 3) #1 {main} thrown in /in/lnhXp on line 4
Process exited with code 255.

preferences:
95.19 ms | 411 KiB | 5 Q