3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<DATA T1 - X1(1), 7 T2 - C2(-9), -15 T3 - Y2(1), 3 T5 - C2(-1), 100 DATA; $result = preg_split("~\s-\s|[(),\s]~", $data, -1, PREG_SPLIT_NO_EMPTY); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l7FM4U
function name:  (null)
number of ops:  12
compiled vars:  !0 = $data, !1 = $result
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'
    9     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%7E%5Cs-%5Cs%7C%5B%28%29%2C%5Cs%5D%7E'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 -1
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !1, $3
   11     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.18 ms | 1427 KiB | 15 Q