3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function f() {static $x = array(0=>2, 4=>array(9=>array(2))); $x[0]++; return $x;} print_r(f());
Output for 4.3.0 - 7.1.0
Array ( [0] => 3 [4] => Array ( [9] => Array ( [0] => 2 ) ) )