3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $features = array( 'Core' => 'Core module', 'XML' => 'XML module', 'HTML' => 'HTML module', 'Views' => 'Views module', 'Stylesheets' => 'Style Sheets module', 'CSS' => 'CSS module', 'CSS2' => 'CSS2 module', 'Events' => 'Events module', 'UIEvents' => 'User interface Events module', 'MouseEvents' => 'Mouse Events module', 'MutationEvents' => 'Mutation Events module', 'HTMLEvents' => 'HTML Events module', 'Range' => 'Range module', 'Traversal' => 'Traversal module' ); foreach ($features as $key => $name) { if (DOMImplementation::hasFeature($key, '2.0')) { echo "Has feature $name\n"; } else { echo "Missing feature $name\n"; } } ?>
Output for 7.0.0 - 7.1.0
Deprecated: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Core module Deprecated: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Has feature XML module Deprecated: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature HTML module Deprecated: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Views module Deprecated: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Style Sheets module Deprecated: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature CSS module Deprecated: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature CSS2 module Deprecated: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Events module Deprecated: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature User interface Events module Deprecated: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Mouse Events module Deprecated: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Mutation Events module Deprecated: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature HTML Events module Deprecated: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Range module Deprecated: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Traversal module
Output for hhvm-3.12.0
Fatal error: Uncaught Error: Non-static method DOMImplementation::hasFeature() cannot be called statically in /in/aA2Qd:21 Stack trace: #0 /in/aA2Qd(21): DOMImplementation::hasFeature() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: Non-static method DOMImplementation::hasFeature() cannot be called statically in /in/aA2Qd on line 21
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Strict Standards: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Core module Strict Standards: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Has feature XML module Strict Standards: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature HTML module Strict Standards: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Views module Strict Standards: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Style Sheets module Strict Standards: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature CSS module Strict Standards: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature CSS2 module Strict Standards: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Events module Strict Standards: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature User interface Events module Strict Standards: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Mouse Events module Strict Standards: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Mutation Events module Strict Standards: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature HTML Events module Strict Standards: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Range module Strict Standards: Non-static method DOMImplementation::hasFeature() should not be called statically in /in/aA2Qd on line 21 Missing feature Traversal module
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'domimplementation' in /in/aA2Qd on line 21
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'domimplementation' in /in/aA2Qd on line 21