3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lead_container = "Address: 123 Main Street City: New York"; echo preg_replace('#Address:.*#i', '', $lead_container); echo preg_replace('#Address:.*?\n#si', '', $lead_container);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V0T1R
function name:  (null)
number of ops:  14
compiled vars:  !0 = $lead_container
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Address%3A+123+Main+Street%0ACity%3A+New+York'
    5     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23Address%3A.%2A%23i'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
    6     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%23Address%3A.%2A%3F%5Cn%23si'
          9        SEND_VAL                                                 ''
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $3      
         12        ECHO                                                     $3
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.21 ms | 1009 KiB | 14 Q