3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $size = 7; $vertical = str_pad('*', $size * 2 - 1, ' ', STR_PAD_BOTH); $result = array_fill(0, $size, $vertical); $result[$size / 2] = implode(' ', array_fill(0, $size, '*')); echo implode(PHP_EOL, $result);
based on bFjfZ
Output for 7.1.25 - 7.3.3
* * * * * * * * * * * * *