3v4l.org

run code in 300+ PHP versions simultaneously
<?php $maches='{Promotional SMS Credits: 0, Transactional SMS Credits: 9973}'; preg_match("/(\w+)?/", '"\1":',$matches); print_r($matches); echo "\n"; preg_match("/(\w*)/", '"\1":',$matches); print_r($matches);

preferences:
28.46 ms | 402 KiB | 5 Q