3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'Herr Max Mustermann Musterstraße 3 12345 City Customer 123456 Date 03.01.2023'; echo preg_replace('/.* Customer (\d+).*/', '$1', $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o0u05
function name:  (null)
number of ops:  5
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Herr+Max+Mustermann+Musterstra%C3%9Fe+3+12345+City+Customer+123456+Date+03.01.2023'
    5     1        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F.%2A+Customer+%28%5Cd%2B%29.%2A%2F', '%241'
          2        OP_DATA                                                      !0
          3        ECHO                                                         ~2
          4      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.12 ms | 1701 KiB | 13 Q