3v4l.org

run code in 500+ PHP versions simultaneously
<?php class _ {} function _($_) { echo $_; } const _ = 'hello PHP'; _ (_:_) ; ?>
Output for 8.6.0
Deprecated: Using "_" as a class name is deprecated since 8.4 in /in/bfh8v on line 3 Deprecated: Calling a constant "_" is deprecated since 8.6 in /in/bfh8v on line 7 hello PHP
Output for 8.4.1 - 8.4.28, 8.5.0 - 8.5.13
Deprecated: Using "_" as a class name is deprecated since 8.4 in /in/bfh8v on line 3 hello PHP
Output for 8.1.32 - 8.1.34, 8.2.0 - 8.2.36, 8.3.0 - 8.3.37
hello PHP

preferences:
35.13 ms | 1170 KiB | 6 Q