3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AdminModel { protected function batchTag($value, $pks, $contexts, $removeTags = false) { } } class ModelBasedOn4or5or6code extends AdminModel { protected function batchTag($value, $pks, $contexts) { } }
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Declaration of ModelBasedOn4or5or6code::batchTag($value, $pks, $contexts) must be compatible with AdminModel::batchTag($value, $pks, $contexts, $removeTags = false) in /in/mshfh on line 10
Process exited with code 255.

preferences:
158.18 ms | 996 KiB | 7 Q