3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = array_fill(0, 1, '..'); $x[] = 'a'; var_dump($x);
based on Sc8ce

Looking for PHP 7.0.6 bugs?

Version 7.0.6 was released twice by the PHP Team. We're using the latest version;
meaning this script no longer shows the bug which the original release had.

The bugs that were fixed in the second release are 72116 and 72119.

Output for 5.5.0 - 7.2.6
array(2) { [0]=> string(2) ".." [1]=> string(1) "a" }