3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class HttpStatus { public static $abc = 'abc'; public static $def = 'def'; } $abd = 'abc'; $def = 'def'; echo HttpStatus::$abc; echo HttpStatus::${'ABC'};
based on bQfQK
Output for 7.0.0 - 7.2.0
abc Fatal error: Uncaught Error: Access to undeclared static property: HttpStatus::$ABC in /in/lirjh:13 Stack trace: #0 {main} thrown in /in/lirjh on line 13
Process exited with code 255.
Output for 5.3.21 - 5.6.28
abc Fatal error: Access to undeclared static property: HttpStatus::$ABC in /in/lirjh on line 13
Process exited with code 255.