In what scenarios would it be more beneficial to use traditional arithmetic operations in PHP instead of creating custom classes and methods for calculations?

In scenarios where the calculations are simple and do not require complex logic or custom functionality, it may be more beneficial to use traditional arithmetic operations in PHP instead of creating custom classes and methods. This can help simplify the code and improve readability, especially for basic mathematical operations.

// Using traditional arithmetic operations for simple calculations
$num1 = 10;
$num2 = 5;

$sum = $num1 + $num2;
$diff = $num1 - $num2;
$product = $num1 * $num2;
$quotient = $num1 / $num2;

echo "Sum: " . $sum . "\n";
echo "Difference: " . $diff . "\n";
echo "Product: " . $product . "\n";
echo "Quotient: " . $quotient . "\n";