3v4l.org

run code in 300+ 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:  11
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        INIT_FCALL                                               'str_replace'
          3        CAST                                          6  ~5      !1
          4        SEND_VAL                                                 ~5
          5        SEND_VAL                                                 ''
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ASSIGN                                           ~7      !2, $6
          9        ECHO                                                     ~7
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
132.75 ms | 1443 KiB | 14 Q