3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? class ListᐸTᐳ { private $items = []; public function add(T $item) { $this->items[] = $item; } } $list = new Listᐸstringᐳ(); $list->add('Foo');
based on 6CrRm
Output for 7.0.0 - 7.3.0rc3
Fatal error: Uncaught Error: Class 'Listᐸstringᐳ' not found in /in/D1Qih:13 Stack trace: #0 {main} thrown in /in/D1Qih on line 13
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Class undefined: Listᐸstringᐳ in /in/D1Qih:13 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Class 'Listᐸstringᐳ' not found in /in/D1Qih on line 13
Process exited with code 255.