3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_customAttrHelper = $this->helper('clarion_customerattribute/customerattribute'); $_attributeCollection = $_customAttrHelper->getUserDefinedAttribures(); $_showCustomAttr = false; foreach ($_attributeCollection as $_attribute): $_showCustomAttr = $_showCustomAttr || $_customAttrHelper->isAttribureForCustomerAccountEdit($_attribute->getAttributeCode()); endforeach; if ($_showCustomAttr): endif;
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Using $this when not in object context in /in/mHcoC:2 Stack trace: #0 {main} thrown in /in/mHcoC on line 2
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Using $this when not in object context in /in/mHcoC on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Call to a member function on a non-object in /in/mHcoC on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to a member function on a non-object in /in/mHcoC on line 2