Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is a number or a numeric string
<?php is_numeric(mixed $value): bool
<?php     private static function evaluateOperation(string $a, string $operator, string $b): bool|int {

        $a = is_numeric($a) ? (int) $a : $a;

        $b = is_numeric($b) ? (int) $b : $b;

        $either_is_string = is_string($a) || is_string($b);

        $match = match ($operator) {
<?php     private static function evaluateOperation(string $a, string $operator, string $b): bool|int {

        $a = is_numeric($a) ? (int) $a : $a;

        $b = is_numeric($b) ? (int) $b : $b;

        $either_is_string = is_string($a) || is_string($b);

        $match = match ($operator) {

            '==' => $a == $b,