3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $zzz=$element->title->getAttribs(); $element->title->setAttrib('placeholder', $this->translator($zzz['placeholder']));
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: element in /in/4DUER on line 2 Notice: Trying to get property of non-object in /in/4DUER on line 2 Fatal error: Uncaught Error: Call to a member function getAttribs() on null in /in/4DUER:2 Stack trace: #0 {main} thrown in /in/4DUER on line 2
Process exited with code 255.
Output for 5.6.0 - 5.6.28
Notice: Undefined variable: element in /in/4DUER on line 2 Notice: Trying to get property of non-object in /in/4DUER on line 2 Fatal error: Call to a member function getAttribs() on null in /in/4DUER on line 2
Process exited with code 255.
Output for 5.5.0 - 5.5.35
Notice: Undefined variable: element in /in/4DUER on line 2 Notice: Trying to get property of non-object in /in/4DUER on line 2 Fatal error: Call to a member function getAttribs() on a non-object in /in/4DUER on line 2
Process exited with code 255.
Output for 5.2.3 - 5.4.45
Fatal error: Call to a member function getAttribs() on a non-object in /in/4DUER on line 2
Process exited with code 255.
Output for 5.0.0 - 5.2.2
<br /> <b>Fatal error</b>: Call to a member function getAttribs() on a non-object in <b>/in/4DUER</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.9
<br /> <b>Fatal error</b>: Call to a member function on a non-object in <b>/in/4DUER</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to a member function on a non-object in <b>/in/4DUER</b> on line <b>2</b><br />