3v4l.org

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

preferences:
35.07 ms | 884 KiB | 4 Q