3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = "Seats: 11;12; Name: qqqq;wwww; Start: Прешов, АВ Košická 2725/2 End: Мукачево, АЗ Лавковская, 1б Date: 2019-06-22 Time: 09:40 PM"; if (preg_match_all('~(?:\G(?!^);|Seats:\s*)\K\d+~',$txt,$matches)) { print_r($matches[0]); }
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.26, 7.4.0 - 7.4.16, 8.0.0 - 8.0.3
Array ( [0] => 11 [1] => 12 )