If eval() is the answer, you're almost certainly asking the wrong question.
Notes from Wikiquote
PHP in a Nutshell by Paul Hudson, 2005
I've never thought of PHP as more than a simple tool to solve problems.
PHP 8 is significantly better because it contains a lot less of my code.
There are people who actually like programming. I don't understand why they like programming.
PHP is just a hammer. Nobody has ever gotten rich making hammers.
Ugly problems often require ugly solutions. Solving an ugly problem in a pure manner is bloody hard.
Quote text and notes from Wikiquote: Rasmus Lerdorf (page history), available under CC BY-SA 4.0. Source quality and labels are our own summary of what Wikiquote records.