3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tempStyleArray = preg_split( "/[:;]+/", "width: 569px; height: 26.456692913px; margin: 0px; border: 2px solid black;" ); var_dump($tempStyleArray); $key = array_search('height', $tempStyleArray); echo $key;
based on J6Uo1
Output for 4.3.0 - 7.2.0
array(9) { [0]=> string(5) "width" [1]=> string(6) " 569px" [2]=> string(7) " height" [3]=> string(15) " 26.456692913px" [4]=> string(7) " margin" [5]=> string(4) " 0px" [6]=> string(7) " border" [7]=> string(16) " 2px solid black" [8]=> string(0) "" }