3v4l.org

run code in 500+ PHP versions simultaneously
<?php if(false) { class Hoax { public function __construct() { echo "win!"; } } } new $_GET['c']();
Output for 8.2.0 - 8.2.34, 8.3.0 - 8.3.35, 8.4.1 - 8.4.26, 8.5.0 - 8.5.11
Warning: Undefined array key "c" in /in/PeAkO on line 9 Fatal error: Uncaught Error: Class name must be a valid object or a string in /in/PeAkO:9 Stack trace: #0 {main} thrown in /in/PeAkO on line 9
Process exited with code 255.

preferences:
27.2 ms | 1156 KiB | 7 Q