3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "ATENÇÃO: O produto será revisado e constatado o defeito será"; $remover = array ("ATENÇÃO:","será"); echo $texto = str_replace("$remover","",$string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fLpSU
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string, !1 = $remover, !2 = $texto
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'ATEN%C3%87%C3%83O%3A+O+produto+ser%C3%A1+revisado+e+constatado+o+defeito+ser%C3%A1'
    5     1        ASSIGN                                                       !1, <array>
    7     2        CAST                                              6  ~5      !1
          3        FRAMELESS_ICALL_3                str_replace         ~6      ~5, ''
          4        OP_DATA                                                      !0
          5        ASSIGN                                               ~7      !2, ~6
          6        ECHO                                                         ~7
          7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.72 ms | 2188 KiB | 13 Q