3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'REXEL : Votre dossier Primexel n°@ref_dossier@ expire le @date_expiration@'; preg_match_all('/@([^@]+)@/i', $str, $matches, PREG_OFFSET_CAPTURE); print_r($matches);
Output for 4.3.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Array ( [0] => Array ( [0] => @ref_dossier@ [1] => 34 ) [1] => Array ( [0] => @date_expiration@ [1] => 58 ) ) [1] => Array ( [0] => Array ( [0] => ref_dossier [1] => 35 ) [1] => Array ( [0] => date_expiration [1] => 59 ) ) )
Output for 4.3.0 - 4.3.2
Warning: Wrong value for parameter 4 in call to preg_match_all() in /in/QuYZO on line 3