3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8string = 'Agence Santé; $var = 'santé'; $pos = strpos($utf8string, $var); if ($pos!==false) { echo substr($utf8string, 0, $pos); }
No results found

preferences:
138.75 ms | 1393 KiB | 7 Q