3v4l.org

run code in 300+ PHP versions simultaneously
<?php $days = array('2'); function alter_days(&$day) { return $day -= 1; } array_filter($days, 'alter_days'); var_dump($days);

preferences:
41.89 ms | 402 KiB | 5 Q