3v4l.org

run code in 500+ PHP versions simultaneously
<?php $pattern = '/-/'; var_dump(preg_split($pattern, '', '-1', (string) PREG_SPLIT_NO_EMPTY));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PqFaA
function name:  (null)
number of ops:  12
compiled vars:  !0 = $pattern
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%2F-%2F'
    4     1        INIT_FCALL                                                   'var_dump'
          2        INIT_FCALL                                                   'preg_split'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     ''
          5        SEND_VAL                                                     '-1'
          6        CAST                                              6  ~2      1
          7        SEND_VAL                                                     ~2
          8        DO_ICALL                                             $3      
          9        SEND_VAR                                                     $3
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
150.92 ms | 1518 KiB | 15 Q