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

preferences:
28.63 ms | 404 KiB | 5 Q