3v4l.org

run code in 300+ PHP versions simultaneously
<?php function prepareForSearch(array $strings) { return trim(html_entity_decode(strip_tags(implode(' ', $strings)), ENT_COMPAT)); } echo prepareForSearch(array('&copy;&nbsp;<br>ab'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7HDkD
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'prepareforsearch'
          1        SEND_VAL                                                 <array>
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function prepareforsearch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7HDkD
function name:  prepareForSearch
number of ops:  17
compiled vars:  !0 = $strings
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'trim'
          2        INIT_FCALL                                               'html_entity_decode'
          3        INIT_FCALL                                               'strip_tags'
          4        INIT_FCALL                                               'implode'
          5        SEND_VAL                                                 '+'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        SEND_VAL                                                 2
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                         $4      
         15      > RETURN                                                   $4
    4    16*     > RETURN                                                   null

End of function prepareforsearch

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.06 ms | 1389 KiB | 22 Q