3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = ' background-image: url(../images/....png); height: 32px; width: 32px; margin: 0px; -webkit-transition: all ease 0.4s; -moz-transition: all ease 0.4s; -o-transition: all ease 0.4s; -ms-transition: all ease 0.4s; transition: all ease 0.4s; opacity:0.70; filter:alpha(opacity=70); /* For IE8 and earlier */ overflow: hidden; '; $string = preg_replace('#\/\*[\s\S]*\*\/#U', '', $string); $x = preg_split('#[:;]#', $string, -1, PREG_SPLIT_NO_EMPTY); $x = array_filter(array_map('trim', $x)); $odd = array_filter($x, function ($input) {return $input & 1;}); $even = array_filter($x, function ($input) {return !($input & 1);}); print_r($odd); print_r($even);

preferences:
42.43 ms | 402 KiB | 5 Q