3v4l.org

run code in 300+ PHP versions simultaneously
<?php function charge(int $amount) { // charge customer for $amount; printf('charged customer %d for the product', $amount); } $amount = '400'; // $database->select('price')->from('products', 'p')->where('p.id = ?')->execute($productId); // .... charge((int) $amout);

preferences:
88.82 ms | 1250 KiB | 5 Q