Deprecated: Use of "static" in callables is deprecated in /in/TrXqE on line 10
Fatal error: Uncaught TypeError: preg_replace_callback(): Argument #2 ($callback) must be a valid callback, cannot access "parent" when current class scope has no parent in /in/TrXqE:10
Stack trace:
#0 /in/TrXqE(10): preg_replace_callback('~\\w+~', Array, 'hello world.')
#1 /in/TrXqE(2): Module::work('hello world.')
#2 {main}
thrown in /in/TrXqE on line 10
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28
Fatal error: Uncaught TypeError: preg_replace_callback(): Argument #2 ($callback) must be a valid callback, cannot access "parent" when current class scope has no parent in /in/TrXqE:10
Stack trace:
#0 /in/TrXqE(10): preg_replace_callback('~\\w+~', Array, 'hello world.')
#1 /in/TrXqE(2): Module::work('hello world.')
#2 {main}
thrown in /in/TrXqE on line 10
Process exited with code 255.
Warning: preg_replace_callback(): Requires argument 2, 'static::parent::replace', to be a valid callback in /in/TrXqE on line 10
hello world.
[[[hello]]] [[[world]]].
Output for 5.2.0 - 5.2.17
Warning: preg_replace_callback(): Requires argument 2, 'static::parent::replace', to be a valid callback in /in/TrXqE on line 10
hello world.
Warning: preg_replace_callback(): Requires argument 2, 'static::parent::replace', to be a valid callback in /in/TrXqE on line 10
hello world.
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Warning: preg_replace_callback(): requires argument 2, 'static::parent::replace', to be a valid callback in /in/TrXqE on line 10
hello world.
Warning: preg_replace_callback(): requires argument 2, 'static::parent::replace', to be a valid callback in /in/TrXqE on line 10
hello world.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_CLASS in /in/TrXqE on line 5
Process exited with code 255.