3v4l.org

run code in 300+ PHP versions simultaneously
<?php function removeCacheWhereLike($sClass, $aWhere) { $aWhereQueryStrings = ''; foreach ($aWhere as $sKey => $sValue) { $aWhereQueryStrings[] = "`Query` LIKE '%\"".$sKey."\":\"".$sValue."\"%'"; } if (empty($aWhereQueryStrings)) { return false; } return " SELECT `Query` FROM IrgentEineTabelle WHERE ".implode(' AND', $aWhereQueryStrings)." "; } echo removeCacheWHereLike('Amazon', array( 'Function' => __FUNCTION__, 'Category' => 'CATEGORY', 'MWSSite' => 'DE', ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X3U4d
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_FCALL                                               'removecachewherelike'
          1        SEND_VAL                                                 'Amazon'
   22     2        SEND_VAL                                                 <array>
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
   25     5      > RETURN                                                   1

Function removecachewherelike:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/X3U4d
function name:  removeCacheWhereLike
number of ops:  25
compiled vars:  !0 = $sClass, !1 = $aWhere, !2 = $aWhereQueryStrings, !3 = $sValue, !4 = $sKey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ASSIGN                                                   !2, ''
    6     3      > FE_RESET_R                                       $6      !1, ->13
          4    > > FE_FETCH_R                                       ~7      $6, !3, ->13
          5    >   ASSIGN                                                   !4, ~7
    7     6        CONCAT                                           ~10     '%60Query%60+LIKE+%27%25%22', !4
          7        CONCAT                                           ~11     ~10, '%22%3A%22'
          8        CONCAT                                           ~12     ~11, !3
          9        CONCAT                                           ~13     ~12, '%22%25%27'
         10        ASSIGN_DIM                                               !2
         11        OP_DATA                                                  ~13
    6    12      > JMP                                                      ->4
         13    >   FE_FREE                                                  $6
   10    14        ISSET_ISEMPTY_CV                                         !2
         15      > JMPZ                                                     ~14, ->17
   11    16    > > RETURN                                                   <false>
   17    17    >   INIT_FCALL                                               'implode'
         18        SEND_VAL                                                 '+AND'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $15     
         21        CONCAT                                           ~16     '%0A++++++++++++SELECT+%60Query%60%0A++++++++++++++FROM+IrgentEineTabelle%0A+++++++++++++WHERE+', $15
         22        CONCAT                                           ~17     ~16, '%0A++++++++'
         23      > RETURN                                                   ~17
   19    24*     > RETURN                                                   null

End of function removecachewherelike

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.87 ms | 1399 KiB | 16 Q