3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 0; print_r(array_map(function ($y) use (&$x) { $x++; return $y; }, [21,42,234,2345,])); print_r($x);

preferences:
33.94 ms | 402 KiB | 5 Q