3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject = 'INT(13)'; $new_length = (int) preg_replace('/\D/', '', $subject); var_dump(preg_split('/\(.*\)/', $subject));
Output for 4.3.0 - 7.1.0
array(2) { [0]=> string(3) "INT" [1]=> string(0) "" }