3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "\ntext\r\ntab\t\ntext\"quote'\"text"; var_dump( str_replace( ['"', "\r", "\n", "\t"], ["'", ''], $string ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jBYaK
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0Atext%0D%0Atab%09%0Atext%22quote%27%22text'
    4     1        INIT_FCALL                                               'var_dump'
    5     2        INIT_FCALL                                               'str_replace'
    6     3        SEND_VAL                                                 <array>
    7     4        SEND_VAL                                                 <array>
    8     5        SEND_VAR                                                 !0
    5     6        DO_ICALL                                         $2      
    8     7        SEND_VAR                                                 $2
    4     8        DO_ICALL                                                 
   10     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.27 ms | 999 KiB | 15 Q