3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tags = "Adam-Smith, Christine, Müller, Roger, Hauptstraße, X Æ A-12"; var_export( preg_split( '/ *, *|[^,]*[^, a-z\d()\-+&%@#][^,]*/i', $tags, 0, PREG_SPLIT_NO_EMPTY ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5SA9C
function name:  (null)
number of ops:  11
compiled vars:  !0 = $tags
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Adam-Smith%2C+Christine%2C+M%C3%BCller%2C+Roger%2C+Hauptstra%C3%9Fe%2C+X+%C3%86+A-12'
    5     1        INIT_FCALL                                               'var_export'
    6     2        INIT_FCALL                                               'preg_split'
    7     3        SEND_VAL                                                 '%2F+%2A%2C+%2A%7C%5B%5E%2C%5D%2A%5B%5E%2C+a-z%5Cd%28%29%5C-%2B%26%25%40%23%5D%5B%5E%2C%5D%2A%2Fi'
    8     4        SEND_VAR                                                 !0
    9     5        SEND_VAL                                                 0
   10     6        SEND_VAL                                                 1
    6     7        DO_ICALL                                         $2      
   10     8        SEND_VAR                                                 $2
    5     9        DO_ICALL                                                 
   12    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
224 ms | 1004 KiB | 15 Q