3v4l.org

run code in 300+ PHP versions simultaneously
<?php $updates = [ "service" => "k", "price" => "85.0", "id" => "442" ]; $test=extract($updates); var_dump($test); var_dump($service,$price,$id) //take the keys above and turn them into variables like the ones shown below $stmt->bind_param(str_repeat("s", count(updates)),$service,$price,$id);
Output for 7.1.0 - 7.1.16, 7.2.0 - 7.2.4
Parse error: syntax error, unexpected '$stmt' (T_VARIABLE) in /in/1t1Fd on line 13
Process exited with code 255.

preferences:
156.78 ms | 1399 KiB | 29 Q