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);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: Unsupported operand types: string & int in /in/E0MWa:22 Stack trace: #0 [internal function]: {closure}('background-imag...') #1 /in/E0MWa(22): array_filter(Array, Object(Closure)) #2 {main} thrown in /in/E0MWa on line 22
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:
39.25 ms | 401 KiB | 8 Q