3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = <<<CODE try{ throw new Exception('test'); }catch(Exception \$e) { echo "seen"; die('never gonna give up'); } CODE; eval($code);
Output for 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
seennever gonna give up

preferences:
40.84 ms | 406 KiB | 5 Q