3v4l.org

run code in 500+ PHP versions simultaneously
<?php $re = '/(\d+)/m'; $str = 'JS35BX54NV33'; $subst = ' $1 '; $result = preg_replace($re, $subst, $str); echo "The result of the substitution is ".$result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N6rSK
function name:  (null)
number of ops:  9
compiled vars:  !0 = $re, !1 = $str, !2 = $subst, !3 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%2F%28%5Cd%2B%29%2Fm'
    4     1        ASSIGN                                                       !1, 'JS35BX54NV33'
    5     2        ASSIGN                                                       !2, '+%241+'
    7     3        FRAMELESS_ICALL_3                preg_replace        ~7      !0, !2
          4        OP_DATA                                                      !1
          5        ASSIGN                                                       !3, ~7
    9     6        CONCAT                                               ~9      'The+result+of+the+substitution+is+', !3
          7        ECHO                                                         ~9
   10     8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.96 ms | 473 KiB | 7 Q