3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace \MyNamespace; use Zend\I18n\Translator\Translator; abstract class MyAbstractClass { public function setStatusAction($statusAction, Translator $translator = null) { $this->statusAction = ($translator !== null) ? $translator->translate(nl2br(ucfirst($statusAction))) : nl2br(ucfirst($statusAction)); } }
Output for 7.1.0 - 7.2.4
Fatal error: Uncaught Error: Undefined constant 'MyNamespace' in /in/O9pEs:3 Stack trace: #0 {main} thrown in /in/O9pEs on line 3
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Undefined constant 'MyNamespace' in /in/O9pEs:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught Error: Undefined constant 'MyNamespace' in /in/O9pEs:3 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Undefined constant 'MyNamespace' in /in/O9pEs on line 3
Process exited with code 255.