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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E0MWa
function name:  (null)
number of ops:  41
compiled vars:  !0 = $string, !1 = $x, !2 = $odd, !3 = $even
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%0A%0A++++background-image%3A+url%28..%2Fimages%2F....png%29%3B%0A++++height%3A+32px%3B%0A++++width%3A+32px%3B%0A++++margin%3A+0px%3B%0A++++-webkit-transition%3A+all+ease+0.4s%3B%0A++++-moz-transition%3A+all+ease+0.4s%3B%0A++++-o-transition%3A+all+ease+0.4s%3B%0A++++-ms-transition%3A+all+ease+0.4s%3B%0A++++transition%3A+all+ease+0.4s%3B%0A++++opacity%3A0.70%3B%0A++++filter%3Aalpha%28opacity%3D70%29%3B+%2F%2A+For+IE8+and+earlier+%2A%2F%0A++++overflow%3A+hidden%3B%0A%0A'
   18     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23%5C%2F%5C%2A%5B%5Cs%5CS%5D%2A%5C%2A%5C%2F%23U'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !0, $5
   19     7        INIT_FCALL                                               'preg_split'
          8        SEND_VAL                                                 '%23%5B%3A%3B%5D%23'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 -1
         11        SEND_VAL                                                 1
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !1, $7
   20    14        INIT_FCALL                                               'array_filter'
         15        INIT_FCALL                                               'array_map'
         16        SEND_VAL                                                 'trim'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $9      
         19        SEND_VAR                                                 $9
         20        DO_ICALL                                         $10     
         21        ASSIGN                                                   !1, $10
   22    22        INIT_FCALL                                               'array_filter'
         23        SEND_VAR                                                 !1
         24        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FE0MWa%3A22%240'
         25        SEND_VAL                                                 ~12
         26        DO_ICALL                                         $13     
         27        ASSIGN                                                   !2, $13
   23    28        INIT_FCALL                                               'array_filter'
         29        SEND_VAR                                                 !1
         30        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FE0MWa%3A23%241'
         31        SEND_VAL                                                 ~15
         32        DO_ICALL                                         $16     
         33        ASSIGN                                                   !3, $16
   25    34        INIT_FCALL                                               'print_r'
         35        SEND_VAR                                                 !2
         36        DO_ICALL                                                 
   26    37        INIT_FCALL                                               'print_r'
         38        SEND_VAR                                                 !3
         39        DO_ICALL                                                 
         40      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FE0MWa%3A22%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E0MWa
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   RECV                                             !0      
          1        BW_AND                                           ~1      !0, 1
          2      > RETURN                                                   ~1
          3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FE0MWa%3A22%240

Function %00%7Bclosure%7D%2Fin%2FE0MWa%3A23%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E0MWa
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   RECV                                             !0      
          1        BW_AND                                           ~1      !0, 1
          2        BOOL_NOT                                         ~2      ~1
          3      > RETURN                                                   ~2
          4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FE0MWa%3A23%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.13 ms | 1400 KiB | 23 Q