3v4l.org

run code in 200+ PHP versions simultaneously
<?php $stringA = 'INTËRÑÂTÎÔNÆLÍZÀTIØN'; $stringB = 'Intërñâtîônælízàtiøn'; echo 'strcasecmp():',PHP_EOL; var_dump(strcasecmp($stringA, $stringB) === 0); echo PHP_EOL,'strnatcasecmp():',PHP_EOL; var_dump(strnatcasecmp($stringA, $stringB) === 0); echo PHP_EOL,'str_ireplace():',PHP_EOL; var_dump(str_ireplace($stringA, '', $stringB, $count) === '' && $count === 1); echo PHP_EOL,'preg_match():',PHP_EOL; var_dump(preg_match('`^' . preg_quote($stringA, '`') . '$`i', $stringB) === 1);
based on u8T2L

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch php-master
strcasecmp(): bool(false) strnatcasecmp(): bool(false) str_ireplace(): bool(false) preg_match(): bool(false)
Output for branch php-master+opcache
strcasecmp(): bool(false) strnatcasecmp(): bool(false) str_ireplace(): bool(false) preg_match(): bool(false)
Output for branch php-master+jit
strcasecmp(): bool(false) strnatcasecmp(): bool(false) str_ireplace(): bool(false) preg_match(): bool(false)

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page