3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a = array_pad($a, 5, 0); print_r($a); ?>
Output for 4.3.0 - 7.1.7
Array ( [0] => 0 [1] => 0 [2] => 0 [3] => 0 [4] => 0 )