3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class ItemMapperBase { public function newInstance($thing) { } } class RevtwoItemMapper extends ItemMapperBase { } $first = ItemMapperBase::newInstance('foo'); $second = RevtoItemMapper();
based on peLON
Output for 7.0.0 - 7.2.0
Deprecated: Non-static method ItemMapperBase::newInstance() should not be called statically in /in/jWn8k on line 12 Fatal error: Uncaught Error: Call to undefined function RevtoItemMapper() in /in/jWn8k:13 Stack trace: #0 {main} thrown in /in/jWn8k on line 13
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Strict Standards: Non-static method ItemMapperBase::newInstance() should not be called statically in /in/jWn8k on line 12 Fatal error: Call to undefined function RevtoItemMapper() in /in/jWn8k on line 13
Process exited with code 255.