3v4l.org

run code in 500+ PHP versions simultaneously
<?php $value = "One\tline\r\nThe second line"; echo preg_replace('/[^\r\n[:print:]]/', '', $value);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6q4Ym
function name:  (null)
number of ops:  5
compiled vars:  !0 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'One%09line%0D%0AThe+second+line'
    4     1        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F%5B%5E%5Cr%5Cn%5B%3Aprint%3A%5D%5D%2F', ''
          2        OP_DATA                                                      !0
          3        ECHO                                                         ~2
          4      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
144.71 ms | 1988 KiB | 15 Q