3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "925/123 Black/Jack"; $pattern = "#(?<!\S)\d+(?:/\d+)+(?!\S)(*SKIP)(*F)|[/\\\\_\s]+#u"; $splitted = preg_split($pattern, $string); print_r($splitted);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tdm30
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $pattern, !2 = $splitted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '925%2F123+Black%2FJack'
    4     1        ASSIGN                                                   !1, '%23%28%3F%3C%21%5CS%29%5Cd%2B%28%3F%3A%2F%5Cd%2B%29%2B%28%3F%21%5CS%29%28%2ASKIP%29%28%2AF%29%7C%5B%2F%5C%5C_%5Cs%5D%2B%23u'
    5     2        INIT_FCALL                                               'preg_split'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    6     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.58 ms | 1001 KiB | 15 Q