3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.1.30 - 8.1.32, 8.2.3 - 8.2.28, 8.3.5 - 8.3.19, 8.4.1 - 8.4.5
== String-based == int(1) foo(): Argument #1 ($a) must be of type int, class@anonymous given, called in /in/Q2H2Z on line 18 == Type-less lambda == int(1) foo(): Argument #1 ($a) must be of type int, class@anonymous given, called in /in/Q2H2Z on line 9 == First-class callable == int(1) foo(): Argument #1 ($a) must be of type int, class@anonymous given, called in /in/Q2H2Z on line 18

preferences:
75.6 ms | 412 KiB | 5 Q