3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $query = 'UPDATE `table_name` SET `field1_name` = :? WHERE `field2_name` = :?'; $bind_marker = '?'; $bind_values = array("'foo'", "'bar'"); echo str_replace($bind_marker, $bind_values, $query);
based on tMg2h
Output for 4.3.0 - 7.1.0
Notice: Array to string conversion in /in/kHkoL on line 5 UPDATE `table_name` SET `field1_name` = :Array WHERE `field2_name` = :Array