3v4l.org

run code in 300+ PHP versions simultaneously
<?php $width = 2500 / 1000; $height = 1500 / 1000; $quantity = (float)(round($width,2)) * (round($height,2)); $price = (float)substr("£10.00", 2); echo (round($quantity,2) * $price);

preferences:
49.48 ms | 402 KiB | 5 Q