3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = "[[question(8)]]"; preg_match( '/\((.*?)\)/', $key, $questionID ); print_r( $questionID );

preferences:
37.84 ms | 402 KiB | 5 Q