3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Can\'t Touch This®™'; $newstring = ''; $forbidden = array(174,194); for($i=0;$i<strlen($string);$i++){ if(in_array(ord($string[$i]),$forbidden)) continue; else $newstring.= $string[$i]; } echo $newstring;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
Branch analysis from position: 5
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
Branch analysis from position: 5
filename:       /in/6ZMFQ
function name:  (null)
number of ops:  24
compiled vars:  !0 = $string, !1 = $newstring, !2 = $forbidden, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Can%27t+Touch+This%C2%AE%E2%84%A2'
    3     1        ASSIGN                                                   !1, ''
    4     2        ASSIGN                                                   !2, <array>
    5     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->19
    6     5    >   INIT_FCALL                                               'in_array'
          6        INIT_FCALL                                               'ord'
          7        FETCH_DIM_R                                      ~8      !0, !3
          8        SEND_VAL                                                 ~8
          9        DO_ICALL                                         $9      
         10        SEND_VAR                                                 $9
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $10     
         13      > JMPZ                                                     $10, ->16
         14    > > JMP                                                      ->18
         15*       JMP                                                      ->18
    7    16    >   FETCH_DIM_R                                      ~11     !0, !3
         17        ASSIGN_OP                                     8          !1, ~11
    5    18    >   PRE_INC                                                  !3
         19    >   STRLEN                                           ~14     !0
         20        IS_SMALLER                                               !3, ~14
         21      > JMPNZ                                                    ~15, ->5
    9    22    >   ECHO                                                     !1
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.85 ms | 1396 KiB | 17 Q