3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "USA - O'Fallon, 801 Corporate Centre Dr"; $valid = str_replace(['(', ')', '.', "'", '"', ' ', '-', '_', ','], '', $string); echo $valid;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SG7q3
function name:  (null)
number of ops:  6
compiled vars:  !0 = $string, !1 = $valid
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'USA+-+O%27Fallon%2C+801+Corporate+Centre+Dr'
    3     1        FRAMELESS_ICALL_3                str_replace         ~3      <array>, ''
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !1, ~3
    4     4        ECHO                                                         !1
    5     5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.47 ms | 1962 KiB | 13 Q