3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Hëllo, peôple at Stackoverflow'; $array = ['hëllo', 'peôple']; $result = null; foreach ($array as $needle) { if (!preg_match('/\b' . preg_quote($needle, '/') . '\b/iu', $string)) { $result = false; break; } $result = true; } var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 21
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 21
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 21
Branch analysis from position: 21
filename:       /in/l7HoC
function name:  (null)
number of ops:  26
compiled vars:  !0 = $string, !1 = $array, !2 = $result, !3 = $needle
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'H%C3%ABllo%2C+pe%C3%B4ple+at+Stackoverflow'
    4     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, null
    7     3      > FE_RESET_R                                       $7      !1, ->21
          4    > > FE_FETCH_R                                               $7, !3, ->21
    8     5    >   INIT_FCALL                                               'preg_match'
          6        INIT_FCALL                                               'preg_quote'
          7        SEND_VAR                                                 !3
          8        SEND_VAL                                                 '%2F'
          9        DO_ICALL                                         $8      
         10        CONCAT                                           ~9      '%2F%5Cb', $8
         11        CONCAT                                           ~10     ~9, '%5Cb%2Fiu'
         12        SEND_VAL                                                 ~10
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $11     
         15        BOOL_NOT                                         ~12     $11
         16      > JMPZ                                                     ~12, ->19
    9    17    >   ASSIGN                                                   !2, <false>
   10    18      > JMP                                                      ->21
   12    19    >   ASSIGN                                                   !2, <true>
    7    20      > JMP                                                      ->4
         21    >   FE_FREE                                                  $7
   15    22        INIT_FCALL                                               'var_export'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
210.54 ms | 1005 KiB | 16 Q