3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $good = ['_id']; $post = ['_id'=>1]; var_dump(array_combine($good, $post));
based on 0RhEA
Output for 5.4.9 - 7.2.0
array(1) { ["_id"]=> int(1) }
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/qiOHl on line 2
Process exited with code 255.