3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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; '; $x = preg_split('#[:;]#', $string, -1, PREG_SPLIT_NO_EMPTY); $x = array_filter(array_map('trim', $$x)); print_r($x);
Output for 5.5.0 - 7.1.0
Notice: Array to string conversion in /in/voeGr on line 19 Notice: Undefined variable: Array in /in/voeGr on line 19 Warning: array_map(): Argument #2 should be an array in /in/voeGr on line 19 Warning: array_filter() expects parameter 1 to be array, null given in /in/voeGr on line 19
Output for 5.3.0 - 5.4.45
Warning: array_map(): Argument #2 should be an array in /in/voeGr on line 19 Warning: array_filter() expects parameter 1 to be array, null given in /in/voeGr on line 19
Output for 5.2.3 - 5.2.17
Warning: array_map(): Argument #2 should be an array in /in/voeGr on line 19 Warning: array_filter(): The first argument should be an array in /in/voeGr on line 19
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: array_map() [<a href='function.array-map'>function.array-map</a>]: Argument #2 should be an array in <b>/in/voeGr</b> on line <b>19</b><br /> <br /> <b>Warning</b>: array_filter() [<a href='function.array-filter'>function.array-filter</a>]: The first argument should be an array in <b>/in/voeGr</b> on line <b>19</b><br />
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: array_map(): Argument #2 should be an array in <b>/in/voeGr</b> on line <b>19</b><br /> <br /> <b>Warning</b>: array_filter(): The first argument should be an array in <b>/in/voeGr</b> on line <b>19</b><br />
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: array_map() [<a href='http://www.php.net/function.array-map'>function.array-map</a>]: Argument #2 should be an array in <b>/in/voeGr</b> on line <b>19</b><br /> <br /> <b>Warning</b>: array_filter() [<a href='http://www.php.net/function.array-filter'>function.array-filter</a>]: The first argument should be an array in <b>/in/voeGr</b> on line <b>19</b><br />