3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res = ''; $attributes = explode("||", 'черный==0||зеленый==0||салатовый==0||полированный==0||оранжевый==0||красный==0||белый==0'); $attributes1 = 'черный==0||зеленый==0||салатовый==0||полированный==0||оранжевый==0||красный==0||белый==0'; foreach ($attributes as $value_attribute) { if (!empty($value_attribute)) { //$res .= $value_attribute.'-'; $attributes_delimiter = explode("==", $value_attribute); foreach ($attributes_delimiter as $value_attribute_delimiter) { $res .= $value_attribute_delimiter.'-'; print_r(implode("==", $value_attribute_delimiter)); } } else { } } echo $res; $tvs1=explode("||",$attributes1); $tvs2=explode("==",$tvs1); echo '<pre>'; print_r($tvs1); echo '</pre>'; echo '<pre>'; print_r($tvs2); echo '</pre>'; echo '<pre>'; print_r($attributes_delimiter); echo '</pre>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 32
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 32
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 31
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 29
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 29
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 29
Branch analysis from position: 31
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/oCUTA
function name:  (null)
number of ops:  60
compiled vars:  !0 = $res, !1 = $attributes, !2 = $attributes1, !3 = $value_attribute, !4 = $attributes_delimiter, !5 = $value_attribute_delimiter, !6 = $tvs1, !7 = $tvs2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%7C%7C'
          3        SEND_VAL                                                 '%D1%87%D0%B5%D1%80%D0%BD%D1%8B%D0%B9%3D%3D0%7C%7C%D0%B7%D0%B5%D0%BB%D0%B5%D0%BD%D1%8B%D0%B9%3D%3D0%7C%7C%D1%81%D0%B0%D0%BB%D0%B0%D1%82%D0%BE%D0%B2%D1%8B%D0%B9%3D%3D0%7C%7C%D0%BF%D0%BE%D0%BB%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%BD%D1%8B%D0%B9%3D%3D0%7C%7C%D0%BE%D1%80%D0%B0%D0%BD%D0%B6%D0%B5%D0%B2%D1%8B%D0%B9%3D%3D0%7C%7C%D0%BA%D1%80%D0%B0%D1%81%D0%BD%D1%8B%D0%B9%3D%3D0%7C%7C%D0%B1%D0%B5%D0%BB%D1%8B%D0%B9%3D%3D0'
          4        DO_ICALL                                         $9      
          5        ASSIGN                                                   !1, $9
    6     6        ASSIGN                                                   !2, '%D1%87%D0%B5%D1%80%D0%BD%D1%8B%D0%B9%3D%3D0%7C%7C%D0%B7%D0%B5%D0%BB%D0%B5%D0%BD%D1%8B%D0%B9%3D%3D0%7C%7C%D1%81%D0%B0%D0%BB%D0%B0%D1%82%D0%BE%D0%B2%D1%8B%D0%B9%3D%3D0%7C%7C%D0%BF%D0%BE%D0%BB%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%BD%D1%8B%D0%B9%3D%3D0%7C%7C%D0%BE%D1%80%D0%B0%D0%BD%D0%B6%D0%B5%D0%B2%D1%8B%D0%B9%3D%3D0%7C%7C%D0%BA%D1%80%D0%B0%D1%81%D0%BD%D1%8B%D0%B9%3D%3D0%7C%7C%D0%B1%D0%B5%D0%BB%D1%8B%D0%B9%3D%3D0'
    8     7      > FE_RESET_R                                       $12     !1, ->32
          8    > > FE_FETCH_R                                               $12, !3, ->32
   10     9    >   ISSET_ISEMPTY_CV                                 ~13     !3
         10        BOOL_NOT                                         ~14     ~13
         11      > JMPZ                                                     ~14, ->31
   14    12    >   INIT_FCALL                                               'explode'
         13        SEND_VAL                                                 '%3D%3D'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                         $15     
         16        ASSIGN                                                   !4, $15
   16    17      > FE_RESET_R                                       $17     !4, ->29
         18    > > FE_FETCH_R                                               $17, !5, ->29
   18    19    >   CONCAT                                           ~18     !5, '-'
         20        ASSIGN_OP                                     8          !0, ~18
   19    21        INIT_FCALL                                               'print_r'
         22        INIT_FCALL                                               'implode'
         23        SEND_VAL                                                 '%3D%3D'
         24        SEND_VAR                                                 !5
         25        DO_ICALL                                         $20     
         26        SEND_VAR                                                 $20
         27        DO_ICALL                                                 
   16    28      > JMP                                                      ->18
         29    >   FE_FREE                                                  $17
         30      > JMP                                                      ->31
    8    31    > > JMP                                                      ->8
         32    >   FE_FREE                                                  $12
   28    33        ECHO                                                     !0
   30    34        INIT_FCALL                                               'explode'
         35        SEND_VAL                                                 '%7C%7C'
         36        SEND_VAR                                                 !2
         37        DO_ICALL                                         $22     
         38        ASSIGN                                                   !6, $22
   31    39        INIT_FCALL                                               'explode'
         40        SEND_VAL                                                 '%3D%3D'
         41        SEND_VAR                                                 !6
         42        DO_ICALL                                         $24     
         43        ASSIGN                                                   !7, $24
   35    44        ECHO                                                     '%3Cpre%3E'
   36    45        INIT_FCALL                                               'print_r'
         46        SEND_VAR                                                 !6
         47        DO_ICALL                                                 
   37    48        ECHO                                                     '%3C%2Fpre%3E'
   39    49        ECHO                                                     '%3Cpre%3E'
   40    50        INIT_FCALL                                               'print_r'
         51        SEND_VAR                                                 !7
         52        DO_ICALL                                                 
   41    53        ECHO                                                     '%3C%2Fpre%3E'
   43    54        ECHO                                                     '%3Cpre%3E'
   44    55        INIT_FCALL                                               'print_r'
         56        SEND_VAR                                                 !4
         57        DO_ICALL                                                 
   45    58        ECHO                                                     '%3C%2Fpre%3E'
         59      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.94 ms | 1392 KiB | 19 Q