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.12
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.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25
object(Closure)#1 (1) { ["static"]=> array(1) { ["a"]=> int(1) } }

preferences:
72.31 ms | 407 KiB | 5 Q