3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Location{ private static $_cache = array(); public static function asd() { self::_cache[] = 'qwe'; } } var_dump(Location::asd());
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '[' in /in/HFhIT on line 8
Process exited with code 255.

preferences:
203.13 ms | 1395 KiB | 66 Q