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 jWn8k
Output for 7.2.0
Deprecated: Non-static method ItemMapperBase::newInstance() should not be called statically in /in/ILbWW on line 12 Warning: Use of undefined constant RevtoItemMapper - assumed 'RevtoItemMapper' (this will throw an Error in a future version of PHP) in /in/ILbWW on line 13
Output for 7.0.0 - 7.1.10
Deprecated: Non-static method ItemMapperBase::newInstance() should not be called statically in /in/ILbWW on line 12 Notice: Use of undefined constant RevtoItemMapper - assumed 'RevtoItemMapper' in /in/ILbWW on line 13
Output for 5.3.18 - 5.6.28
Strict Standards: Non-static method ItemMapperBase::newInstance() should not be called statically in /in/ILbWW on line 12 Notice: Use of undefined constant RevtoItemMapper - assumed 'RevtoItemMapper' in /in/ILbWW on line 13