3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(preg_split('/([ -])/', 'test', -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/evCNt
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'preg_split'
          2        SEND_VAL                                                     '%2F%28%5B+-%5D%29%2F'
          3        SEND_VAL                                                     'test'
          4        SEND_VAL                                                     -1
          5        SEND_VAL                                                     3
          6        DO_ICALL                                             $0      
          7        SEND_VAR                                                     $0
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.09 ms | 1485 KiB | 15 Q