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; '; $x = preg_split('#[:;]#', $string, -1, PREG_SPLIT_NO_EMPTY); $x = array_filter(array_map('trim', $$x)); print_r($x);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/voeGr on line 19 Warning: Undefined variable $Array in /in/voeGr on line 19 Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given in /in/voeGr:19 Stack trace: #0 /in/voeGr(19): array_map('trim', NULL) #1 {main} thrown in /in/voeGr on line 19
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.93 ms | 401 KiB | 8 Q