3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['they "did" it', "some", "other", "elements"]; var_export( [ 'they "did" it' => stripos(json_encode($array), 'they "did" it') !== false, // should be true but isn't 'they \"did\" it' => stripos(json_encode($array), 'they \"did\" it') !== false // should be false but isn't ] );

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
155.35 ms | 2004 KiB | 11 Q