3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Il n'y a pas d'accent, devait être correct \n"; $pattern = '/^[A-Za-z0-9-_\.]*$/'; $string = 'Il-etait-une-fois-9-canards'.PHP_EOL; printf(" Résultat: %s\n", preg_match($pattern, $string) ? 'Correct!' : 'Oups; incorrect') ; echo "Cette fois il y a un accent, incorrect \n"; $pattern = '/^[A-Za-z0-9-_\.]*$/'; $string = 'Il-était-une-fois-9-canards'; printf(" Résultat: %s\n", preg_match($pattern, $string) ? 'Correct!' : 'Oups; incorrect') ;
Output for git.master, git.master_jit, rfc.property-hooks
Il n'y a pas d'accent, devait être correct Résultat: Correct! Cette fois il y a un accent, incorrect Résultat: Oups; incorrect

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

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


preferences:
27.23 ms | 405 KiB | 5 Q