3v4l.org

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

preferences:
50.44 ms | 868 KiB | 4 Q