3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "ATENÇÃO: O produto será revisado e constatado o defeito será"; $remover = ["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/q14WP
function name:  (null)
number of ops:  10
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        SEND_VAR                                                 !1
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ASSIGN                                           ~6      !2, $5
          8        ECHO                                                     ~6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.93 ms | 1450 KiB | 14 Q