3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array("A", "B", "C","D"); foreach ($list as $var) { print(current($list)); }

preferences:
25.53 ms | 404 KiB | 5 Q