Safeness levels:

<?php
$m = new MongoClient( 'mongodb://localhost:13000/?replSet=seta&w=2' );
$c = $m->demo->talks;

$c->insert( [ '_id' => 'mongodb' ] );
$c->insert( [ '_id' => 'mongodb' ] );
?>
Output