3v4l.org

run code in 500+ PHP versions simultaneously
<?php $address = 'AT POST :- SARIGAM, (BHANDARI STREET) PIN : 396155 STATE: GUJARAT VALSAD GUJARAT 396155 India'; echo preg_replace('/([^A-Za-z0-9\s])/', '\\\\$1', $address);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BDU5B
function name:  (null)
number of ops:  5
compiled vars:  !0 = $address
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'AT+POST+%3A-+SARIGAM%2C+%28BHANDARI+STREET%29%0APIN+%3A+396155+STATE%3A+GUJARAT+%0AVALSAD+GUJARAT+++396155+%0AIndia'
    6     1        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F%28%5B%5EA-Za-z0-9%5Cs%5D%29%2F', '%5C%5C%241'
          2        OP_DATA                                                      !0
          3        ECHO                                                         ~2
          4      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
197.55 ms | 2308 KiB | 13 Q