3v4l.org

run code in 300+ PHP versions simultaneously
<?php $gmp = gmp_init(0); $bool = (bool) $gmp; var_dump($bool);
Output for 8.5.1 - 8.5.3
Fatal error: Uncaught Error: Call to undefined function gmp_init() in /in/LHpD1:3 Stack trace: #0 {main} thrown in /in/LHpD1 on line 3
Process exited with code 255.
Output for 8.4.1 - 8.4.18, 8.5.0
bool(false)
Output for 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30
Recoverable fatal error: Object of class GMP could not be converted to bool in /in/LHpD1 on line 5
Process exited with code 255.

preferences:
48.52 ms | 985 KiB | 4 Q