3v4l.org

run code in 500+ PHP versions simultaneously
<?php $ss3="How to make a book"; $words = array ("book","paper","page","sheet"); $new_str_array = str_word_count($ss3,1); $founded_words = array_intersect($words,$new_str_array); if(count($founded_words) > 0){ echo "Founded : ". implode(',',$founded_words); }else{ echo "Founded Nothing"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i766s
function name:  (null)
number of ops:  21
compiled vars:  !0 = $ss3, !1 = $words, !2 = $new_str_array, !3 = $founded_words
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'How+to+make+a+book'
    4     1        ASSIGN                                                       !1, <array>
    5     2        INIT_FCALL                                                   'str_word_count'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     1
          5        DO_ICALL                                             $6      
          6        ASSIGN                                                       !2, $6
    6     7        INIT_FCALL                                                   'array_intersect'
          8        SEND_VAR                                                     !1
          9        SEND_VAR                                                     !2
         10        DO_ICALL                                             $8      
         11        ASSIGN                                                       !3, $8
    7    12        COUNT                                                ~10     !3
         13        IS_SMALLER                                                   0, ~10
         14      > JMPZ                                                         ~11, ->19
    8    15    >   FRAMELESS_ICALL_2                implode             ~12     '%2C', !3
         16        CONCAT                                               ~13     'Founded+%3A+', ~12
         17        ECHO                                                         ~13
    7    18      > JMP                                                          ->20
   10    19    >   ECHO                                                         'Founded+Nothing'
   11    20    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.48 ms | 2676 KiB | 15 Q