3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.2 ms | 997 KiB | 15 Q