3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Car{ public static function a(){ return 'hi'; } } class Constants{ public static $use='Car'; } $class=Constants::$use; echo({Constants::$use}::a());
Output for 5.3.0 - 5.4.15
Parse error: syntax error, unexpected '{' in /in/gAbnA on line 16
Process exited with code 255.