3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $stylestr = 'text-align:center;display:block;'; $_style = array(); preg_match('#((.*?):(.*?);)*#', $stylestr, $matches); var_dump($matches);
based on sl5qr
Output for 4.3.0 - 7.2.0
array(4) { [0]=> string(32) "text-align:center;display:block;" [1]=> string(14) "display:block;" [2]=> string(7) "display" [3]=> string(5) "block" }