3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'PRICE:384.00'; $parts = explode(":", $string); $newPrice = $parts[1] * 2; // Multiply the second value, which is 384.00 echo $parts[0].":".$newPrice;

preferences:
97.46 ms | 1390 KiB | 5 Q