3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Here\'s some text and stuff what is your favorite color? @OTHER["favorite color"] Whats your favorite food? @OTHER["favorite food"]'; while(strpos($text, "@OTHER[") !== false){ $start = strpos($text, '@OTHER["'); $stop = strpos($text, '"]', $start); echo substr($text, $start, $stop-$start); exit; }

preferences:
36.7 ms | 402 KiB | 5 Q