3v4l.org

run code in 500+ PHP versions simultaneously
<?php $woord = 'appel'; $count = strlen($woord); $array = ['l','b','p','s','p']; for ($i = 0; $i < $count; $i++) { if (!in_array($woord[$i], $array)) $woord = str_replace($woord[$i], '_', $woord); } echo $woord;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
Branch analysis from position: 6
Branch analysis from position: 14
filename:       /in/efATj
function name:  (null)
number of ops:  19
compiled vars:  !0 = $woord, !1 = $count, !2 = $array, !3 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'appel'
    4     1        STRLEN                                               ~5      !0
          2        ASSIGN                                                       !1, ~5
    5     3        ASSIGN                                                       !2, <array>
    6     4        ASSIGN                                                       !3, 0
          5      > JMP                                                          ->15
    7     6    >   FETCH_DIM_R                                          ~9      !0, !3
          7        FRAMELESS_ICALL_2                in_array            ~10     ~9, !2
          8        BOOL_NOT                                             ~11     ~10
          9      > JMPZ                                                         ~11, ->14
         10    >   FETCH_DIM_R                                          ~12     !0, !3
         11        FRAMELESS_ICALL_3                str_replace         ~13     ~12, '_'
         12        OP_DATA                                                      !0
         13        ASSIGN                                                       !0, ~13
    6    14    >   PRE_INC                                                      !3
         15    >   IS_SMALLER                                                   !3, !1
         16      > JMPNZ                                                        ~16, ->6
    9    17    >   ECHO                                                         !0
   10    18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
197.31 ms | 2027 KiB | 13 Q