3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fooZoo() { static $array = array('...'); # ... } /*** and ***/ function fooZoo() { static $array; $array || $array = array('...'); # ... }
Output for 5.3.0 - 5.3.24, 5.4.0 - 5.4.14
Fatal error: Cannot redeclare fooZoo() (previously declared in /in/uZPW6:4) in /in/uZPW6 on line 12
Process exited with code 255.

preferences:
177.32 ms | 1395 KiB | 47 Q