3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = array('name' => 'Test', 'age' => 20); $field = 'id'; $value = 2; $where = array_merge($params, array($id => $value); echo '<pre>'; print_r($where); echo '</pre>';
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.21
Parse error: syntax error, unexpected ';' in /in/hnLo8 on line 7
Process exited with code 255.

preferences:
176.86 ms | 1395 KiB | 57 Q