3v4l.org

run code in 300+ 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 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 6
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 6
Branch analysis from position: 23
Branch analysis from position: 6
Branch analysis from position: 20
filename:       /in/efATj
function name:  (null)
number of ops:  25
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                                                      ->21
    7     6    >   INIT_FCALL                                               'in_array'
          7        FETCH_DIM_R                                      ~9      !0, !3
          8        SEND_VAL                                                 ~9
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $10     
         11        BOOL_NOT                                         ~11     $10
         12      > JMPZ                                                     ~11, ->20
         13    >   INIT_FCALL                                               'str_replace'
         14        FETCH_DIM_R                                      ~12     !0, !3
         15        SEND_VAL                                                 ~12
         16        SEND_VAL                                                 '_'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $13     
         19        ASSIGN                                                   !0, $13
    6    20    >   PRE_INC                                                  !3
         21    >   IS_SMALLER                                               !3, !1
         22      > JMPNZ                                                    ~16, ->6
    9    23    >   ECHO                                                     !0
   10    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.87 ms | 1400 KiB | 17 Q