3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(4) { [0]=> string(32) "text-align:center;display:block;" [1]=> string(14) "display:block;" [2]=> string(7) "display" [3]=> string(5) "block" }