3v4l.org

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