3v4l.org

run code in 500+ PHP versions simultaneously
<?php $pattern = "/b[0-9]{4}(*SKIP)(*F)|[^a-z_]/"; $str = "b7001_cp_parc_venc_fluxo_1234"; echo preg_replace($pattern, "", $str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mamTB
function name:  (null)
number of ops:  6
compiled vars:  !0 = $pattern, !1 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '%2Fb%5B0-9%5D%7B4%7D%28%2ASKIP%29%28%2AF%29%7C%5B%5Ea-z_%5D%2F'
    3     1        ASSIGN                                                       !1, 'b7001_cp_parc_venc_fluxo_1234'
    4     2        FRAMELESS_ICALL_3                preg_replace        ~4      !0, ''
          3        OP_DATA                                                      !1
          4        ECHO                                                         ~4
          5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.77 ms | 1979 KiB | 13 Q