3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '> [00:00:00.1] Lorem ipsum dolor sit amet, consectetur adipiscing elit. > [00:00:02.3] Sed facilisis orci at erat vulputate facilisis. > [00:00:08.2] Nam aliquam velit quis nisl posuere, ut blandit turpis > blandit. > [00:00:13.8] Nulla sit amet metus felis. Nulla aliquam > ultrices ipsum eget mattis. > [00:00:19.2] Nulla porta ligula > scelerisque lorem dapibus porttitor. > [00:00:26.6] Praesent dolor mi, > dictum et ante sed, efficitur auctor tortor. > [00:00:35.5] Praesent > euismod dui sem, > vitae pretium nisi suscipit quis. > [00:00:39.7] Nulla porta ligula scelerisque lorem dapibus porttitor.'; preg_match_all('/\[\K[^\]]+/', $string, $matches); print_r($matches);
Output for 7.0.0 - 7.0.25, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.13
Array ( [0] => Array ( [0] => 00:00:00.1 [1] => 00:00:02.3 [2] => 00:00:08.2 [3] => 00:00:13.8 [4] => 00:00:19.2 [5] => 00:00:26.6 [6] => 00:00:35.5 [7] => 00:00:39.7 ) )

preferences:
82.52 ms | 408 KiB | 5 Q