3v4l.org

run code in 300+ PHP versions simultaneously
<?php class XX { static var $v = 0; static public function __get($name) { $v++; return $v; } } print(XX::ASDF);
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
Parse error: syntax error, unexpected 'var' (T_VAR), expecting variable (T_VARIABLE) in /in/ED82M on line 5
Process exited with code 255.

preferences:
169.73 ms | 942 KiB | 23 Q