3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keyword_reports_data['interne'] = [ 'Google.ca - Canada' => [], 'Google.com - USA' => [] ]; foreach ($keyword_reports_data['interne'] as $key => $value) { if (preg_match('/Google.ca/', $key)) { echo "hi " ;exit; } else { echo "not exist ";exit; } }

preferences:
29.53 ms | 404 KiB | 5 Q