3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class StandardType { protected $context; public function __construct($context) { $this->context = $context; } public function __call($fn, ...$args) { $fn = static::getName() . "_$fn"; $args = array_merge([$this->context], $args[0]); return call_user_func_array($fn, $args); } protected abstract static function getName(); }
Output for 7.0.28 - 7.3.0rc3
Fatal error: Method StandardType::__call() must take exactly 2 arguments in /in/hKSsB on line 15
Process exited with code 255.
Output for 5.6.38
Strict Standards: Static function StandardType::getName() should not be abstract in /in/hKSsB on line 18