3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait SomeTrait { public function __call($method, array $parameters) { // ... return is_callable(['parent', '__call']) ? parent::__call($method, $parameters) : null; } } class GreatParentClass { } $class = new GreateParentClass();
based on R8hI3
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'GreateParentClass' not found in /in/EcFQ4:18 Stack trace: #0 {main} thrown in /in/EcFQ4 on line 18
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Class 'GreateParentClass' not found in /in/EcFQ4 on line 18
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/EcFQ4 on line 3
Process exited with code 255.