3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $v = 0; class XX { static public function __get($name) { global $v; $v++; return $v; } } print(XX::ASDF);
based on ED82M
Output for 7.0.0 - 7.2.0
Warning: The magic method __get() must have public visibility and cannot be static in /in/aVbom on line 6 Fatal error: Uncaught Error: Undefined class constant 'ASDF' in /in/aVbom:14 Stack trace: #0 {main} thrown in /in/aVbom on line 14
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Warning: The magic method __get() must have public visibility and cannot be static in /in/aVbom on line 6 Fatal error: Undefined class constant 'ASDF' in /in/aVbom on line 14
Process exited with code 255.