3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'T1 - X1(1), 7 T2 - C2(-9), -15 T3 - Y2(1), 3 T5 - C2(-1), 100'; print_r(preg_split('/-\d(*SKIP)(*FAIL)|\s*[-,#\n#()]\s*/', $string, -1, PREG_SPLIT_NO_EMPTY));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m51qS
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'T1+-+X1%281%29%2C+7%0AT2+-+C2%28-9%29%2C+-15%0AT3+-+Y2%281%29%2C+3%0AT5+-+C2%28-1%29%2C+100'
    6     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'preg_split'
          3        SEND_VAL                                                 '%2F-%5Cd%28%2ASKIP%29%28%2AFAIL%29%7C%5Cs%2A%5B-%2C%23%5Cn%23%28%29%5D%5Cs%2A%2F'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 -1
          6        SEND_VAL                                                 1
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.32 ms | 1404 KiB | 17 Q