3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { function __construct(){echo 'a';} } new ${!${''}='Test'}; new ${$a = 'Test'};
based on r45Tu
Output for 7.0.0 - 7.2.0
a Notice: Undefined variable: Test in /in/55pN0 on line 9 Fatal error: Uncaught Error: Class name must be a valid object or a string in /in/55pN0:9 Stack trace: #0 {main} thrown in /in/55pN0 on line 9
Process exited with code 255.
Output for 5.3.18 - 5.6.28
a Notice: Undefined variable: Test in /in/55pN0 on line 9 Fatal error: Class name must be a valid object or a string in /in/55pN0 on line 9
Process exited with code 255.