3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(preg_match('/^\/api\/v1\/payment\/(.+?)\/success\/jJBePenWo0eN$/','/api/v1/payment/{token}/success/jJBePenWo0eN',$matches) === 1){ print_r($matches); }
Output for 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.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Array ( [0] => /api/v1/payment/{token}/success/jJBePenWo0eN [1] => {token} )

preferences:
102.54 ms | 1479 KiB | 4 Q