3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '11131221133112'; var_export( preg_replace( '/(\d)\1*\K(?!$)/', ' ', $str ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/giArN
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '11131221133112'
    5     1        INIT_FCALL                                               'var_export'
    6     2        INIT_FCALL                                               'preg_replace'
    7     3        SEND_VAL                                                 '%2F%28%5Cd%29%5C1%2A%5CK%28%3F%21%24%29%2F'
    8     4        SEND_VAL                                                 '+'
    9     5        SEND_VAR                                                 !0
    6     6        DO_ICALL                                         $2      
    9     7        SEND_VAR                                                 $2
    5     8        DO_ICALL                                                 
   11     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.23 ms | 1004 KiB | 15 Q