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 X2IQp
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: in /in/ea74T on line 9 Fatal error: Uncaught Error: Class name must be a valid object or a string in /in/ea74T:9 Stack trace: #0 {main} thrown in /in/ea74T on line 9
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Notice: Undefined variable: in /in/ea74T on line 9 Fatal error: Class name must be a valid object or a string in /in/ea74T on line 9
Process exited with code 255.