3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $records = array('id'=>'2','name'=>'Andi'); $columns = array(); foreach ($records as $column => $value) { $columns[] = $column; $key = ':' . $column; $values[] = $key; $placeholders[$key] = $value; }
based on DBLcs
Output for 4.3.0 - 7.2.0