3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "0By"; echo strstr($s, 'By', true) ?: $s; // should be "0", but it is "0By" because of the loose ternary check

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
151.38 ms | 2004 KiB | 9 Q