3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = "Pompe à eau Bmw 316-->325/Touring (E30) 1.8 318i / Auto. (M40) 1796cc 10/87->93"; preg_match_all('/[0-9]{1,2}\/[0-9]{2,4}[\s]*-([0-9]{1,2}\/[0-9]{2,4}){0,1}/', $t, $periode); print_r($periode);
Output for 4.3.0 - 7.1.0
Array ( [0] => Array ( [0] => 10/87- ) [1] => Array ( [0] => ) )