3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.4.1 - 8.4.5
object(GMP)#1 (1) { ["num"]=> string(2) "42" } bool(false) bool(false) string(2) "42" string(2) "42" string(2) "42" int(42) object(GMP)#5 (1) { ["num"]=> string(2) "42" } Fatal error: Uncaught TypeError: {closure:/in/cRnnW:14}(): Argument #1 ($x) must be of type int, GMP given, called in /in/cRnnW on line 14 and defined in /in/cRnnW:14 Stack trace: #0 /in/cRnnW(14): {closure:/in/cRnnW:14}(Object(GMP)) #1 {main} thrown in /in/cRnnW on line 14
Process exited with code 255.
Output for 8.2.10 - 8.2.28, 8.3.0 - 8.3.19
object(GMP)#1 (1) { ["num"]=> string(2) "42" } bool(false) bool(false) string(2) "42" string(2) "42" string(2) "42" int(42) object(GMP)#5 (1) { ["num"]=> string(2) "42" } Fatal error: Uncaught TypeError: {closure}(): Argument #1 ($x) must be of type int, GMP given, called in /in/cRnnW on line 14 and defined in /in/cRnnW:14 Stack trace: #0 /in/cRnnW(14): {closure}(Object(GMP)) #1 {main} thrown in /in/cRnnW on line 14
Process exited with code 255.
Output for 8.1.7 - 8.1.32
object(GMP)#1 (1) { ["num"]=> string(2) "42" } bool(false) bool(false) string(2) "42" string(2) "42" string(2) "42" int(42) object(GMP)#4 (1) { ["num"]=> string(2) "42" } Fatal error: Uncaught TypeError: {closure}(): Argument #1 ($x) must be of type int, GMP given, called in /in/cRnnW on line 14 and defined in /in/cRnnW:14 Stack trace: #0 /in/cRnnW(14): {closure}(Object(GMP)) #1 {main} thrown in /in/cRnnW on line 14
Process exited with code 255.

preferences:
88.3 ms | 414 KiB | 5 Q