3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $columnType = 'decimal(3,2) unsigned'; preg_match('/^decimal\((\d+),(\d+)\)/', $columnType, $matches); var_dump($matches);
based on eIhkJ
Output for 4.3.0 - 7.2.0
array(3) { [0]=> string(12) "decimal(3,2)" [1]=> string(1) "3" [2]=> string(1) "2" }