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);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
152.1 ms | 1879 KiB | 12 Q