3v4l.org

run code in 500+ PHP versions simultaneously
<?php class _ {} function _($_) { echo $_; } const _ = 'hello PHP'; _ (_:_) ; ?>
Output for 8.4.1 - 8.4.21, 8.5.0 - 8.5.6
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.30, 8.3.0 - 8.3.30
hello PHP

preferences:
49.33 ms | 852 KiB | 4 Q