3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $f = fn() => $a; var_dump($f);
Output for 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
object(Closure)#1 (4) { ["name"]=> string(21) "{closure:/in/3rXUW:4}" ["file"]=> string(9) "/in/3rXUW" ["line"]=> int(4) ["static"]=> array(1) { ["a"]=> int(1) } }
Output for 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30
object(Closure)#1 (1) { ["static"]=> array(1) { ["a"]=> int(1) } }

preferences:
68.76 ms | 990 KiB | 4 Q