3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Sonance Visual Performance Series features an award-winning <a href="">Visual Performance Series</a> low-profile grille that is paintable to blend into the wall or ceiling. With three shapes and sizes, several performance levels, and a range of Sonance Landscape Series specialty /ThinLine application speakers, a consistent look can be achieved for any application in every space.'; $skipDictionary = array( 'all' => array( 'Visual Performance', 'ThinLine', 'Extreme', 'Architectural Series', 'Invisible Series', 'Cinema', 'Soundbar', 'Subwoofers', 'Sonance Landscape Series', 'Satellites', 'Subwoofers', 'Systems', 'Sonarray', 'Mariners', 'Medium' ) ); $replaceArray = array_map(function($val){ return '<span class="notranslate">'.$val.'</span>'; }, $skipDictionary['all']); foreach($skipDictionary['all'] AS $idx => $search) { $text = preg_replace('@(\s|^)'.$search.'(\s|$)@', $replaceArray[$idx], $text); } echo '<div>'.$text.'</div>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 23
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 23
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/UQVvH
function name:  (null)
number of ops:  28
compiled vars:  !0 = $text, !1 = $skipDictionary, !2 = $replaceArray, !3 = $search, !4 = $idx
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Sonance+Visual+Performance+Series+features+an+award-winning+%3Ca+href%3D%22%22%3EVisual+Performance+Series%3C%2Fa%3E+low-profile+grille+that+is+paintable+to+blend+into+the+wall+or+ceiling.+With+three+shapes+and+sizes%2C+several+performance+levels%2C+and+a+range+of+Sonance+Landscape+Series+specialty+%2FThinLine+application+speakers%2C+a+consistent+look+can+be+achieved+for+any+application+in+every+space.'
    3     1        ASSIGN                                                   !1, <array>
   23     2        INIT_FCALL                                               'array_map'
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FUQVvH%3A23%240'
   25     4        SEND_VAL                                                 ~7
          5        FETCH_DIM_R                                      ~8      !1, 'all'
          6        SEND_VAL                                                 ~8
          7        DO_ICALL                                         $9      
   23     8        ASSIGN                                                   !2, $9
   27     9        FETCH_DIM_R                                      ~11     !1, 'all'
         10      > FE_RESET_R                                       $12     ~11, ->23
         11    > > FE_FETCH_R                                       ~13     $12, !3, ->23
         12    >   ASSIGN                                                   !4, ~13
   28    13        INIT_FCALL                                               'preg_replace'
         14        CONCAT                                           ~15     '%40%28%5Cs%7C%5E%29', !3
         15        CONCAT                                           ~16     ~15, '%28%5Cs%7C%24%29%40'
         16        SEND_VAL                                                 ~16
         17        FETCH_DIM_R                                      ~17     !2, !4
         18        SEND_VAL                                                 ~17
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $18     
         21        ASSIGN                                                   !0, $18
   27    22      > JMP                                                      ->11
         23    >   FE_FREE                                                  $12
   31    24        CONCAT                                           ~20     '%3Cdiv%3E', !0
         25        CONCAT                                           ~21     ~20, '%3C%2Fdiv%3E'
         26        ECHO                                                     ~21
         27      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FUQVvH%3A23%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UQVvH
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   RECV                                             !0      
   24     1        CONCAT                                           ~1      '%3Cspan+class%3D%22notranslate%22%3E', !0
          2        CONCAT                                           ~2      ~1, '%3C%2Fspan%3E'
          3      > RETURN                                                   ~2
   25     4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FUQVvH%3A23%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.36 ms | 1392 KiB | 17 Q