3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
Fatal error: Uncaught Error: Non-static method DOMImplementation::hasFeature() cannot be called statically in /in/aA2Qd:21 Stack trace: #0 {main} thrown in /in/aA2Qd on line 21
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.12 - 7.3.31, 7.4.0 - 7.4.33
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 7.3.32 - 7.3.33
Missing feature Core module Has feature XML module Missing feature HTML module Missing feature Views module Missing feature Style Sheets module Missing feature CSS module Missing feature CSS2 module Missing feature Events module Missing feature User interface Events module Missing feature Mouse Events module Missing feature Mutation Events module Missing feature HTML Events module Missing feature Range module Missing feature Traversal module
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.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.3.11, 4.4.0 - 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

preferences:
220.81 ms | 401 KiB | 357 Q