3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $subject = 'The Fosters 2013 S02E14 HDTV x264-LOL [eztv]|2013|02'; $pattern = '/S(\d+)E(\d+)/'; preg_match($pattern, $subject, $matches); var_dump($matches);
Output for 4.3.0 - 7.2.0
array(3) { [0]=> string(6) "S02E14" [1]=> string(2) "02" [2]=> string(2) "14" }