3v4l.org

run code in 300+ PHP versions simultaneously
<?php $searchArray = array('settings all','print', 'sum', 'industry'); $text = 'Lorem Ipsum is simply dummy text of the printing and typesettings all industry.'; $text = str_replace('.', '', $text); // and any other characters you dont want $checkArray = explode(' ', $text); var_dump(array_intersect($searchArray, $checkArray));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/17cWj
function name:  (null)
number of ops:  21
compiled vars:  !0 = $searchArray, !1 = $text, !2 = $checkArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'Lorem+Ipsum+is+simply+dummy+text+of+the+printing+and+typesettings+all+industry.'
    5     2        INIT_FCALL                                               'str_replace'
          3        SEND_VAL                                                 '.'
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    6     8        INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '+'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    8    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'array_intersect'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.11 ms | 1002 KiB | 17 Q