3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'REXEL : Votre dossier Primexel n°'; preg_match_all('/@([^@]+)@/i', $str, $matches); print_r($matches); if(!empty($matches[0]) { echo 'trouvé'; }
Output for 5.3.7 - 5.3.28, 5.4.0 - 5.4.26
Parse error: syntax error, unexpected '{' in /in/GrDsn on line 5
Process exited with code 255.

preferences:
188.54 ms | 1386 KiB | 56 Q