3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Location{ private static $_cache = array(); public static function asd() { Location::_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/5a25a on line 8
Process exited with code 255.

preferences:
187.08 ms | 940 KiB | 67 Q