3v4l.org

run code in 300+ 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:  8
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        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%28%5B%5EA-Za-z0-9%5Cs%5D%29%2F'
          3        SEND_VAL                                                 '%5C%5C%241'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.61 ms | 1000 KiB | 14 Q