3v4l.org

run code in 200+ PHP versions simultaneously
<?php $conn = new SQLite3(':memory:'); $data = "foo\0bar"; var_dump($conn->escapeString($data));
Output for 5.5.0 - 7.3.1
string(3) "foo"