3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Hello. A question? How strange! Maybe even surreal!? Who knows.'; var_export( preg_split( '/(!\?|[!?.])/', $string, 0, 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/mrIgM
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello.+A+question%3F+How+strange%21+Maybe+even+surreal%21%3F+Who+knows.'
    5     1        INIT_FCALL                                               'var_export'
    6     2        INIT_FCALL                                               'preg_split'
    7     3        SEND_VAL                                                 '%2F%28%21%5C%3F%7C%5B%21%3F.%5D%29%2F'
    8     4        SEND_VAR                                                 !0
    9     5        SEND_VAL                                                 0
   10     6        SEND_VAL                                                 3
    6     7        DO_ICALL                                         $2      
   10     8        SEND_VAR                                                 $2
    5     9        DO_ICALL                                                 
   12    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.71 ms | 1001 KiB | 15 Q