3v4l.org

run code in 300+ PHP versions simultaneously
<?php $event = ['categories' => 'meeting;skype']; $needle = 'meeting'; $haystack = $event['categories']; if( ($pos = strpos( $haystack, $needle )) === false){ echo "\n$needle not found in $haystack"; } else { echo "\n$needle exists at position $pos in $haystack"; }

preferences:
21.37 ms | 404 KiB | 5 Q