3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f() {static $x = array(0=>2, 4=>array(9=>array(2))); $x[0]++; return $x;} print_r(f());

preferences:
38.58 ms | 402 KiB | 5 Q