3v4l.org

run code in 200+ PHP versions simultaneously
<?php $items = ['Apple', 'Banana', 'Cucumber']; array_map(function($v) { echo $v . "\n"; }, $items);
based on XggRv
Output for 7.1.0 - 7.4.1
Apple Banana Cucumber