3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = 'Articulation Bras De Suspension Fiat Ulysse Nuova (179) 08/2002 - Avant Gauche'; preg_match('/[0-9]{1,2}\/[0-9]{2,4}[\s]*-[[0-9]{1,2}\/[0-9]{2,4}]{0,1}/', $t, $periode); if(isset($periode[0]) === true) { $periode = explode('-', $periode[0]); $a_partir_de = trim($periode[0]); $periode[1] = trim($periode[1]); } print_r($periode);
based on laCQ5
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( )