3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'There is something to type here. This is an example text'; $string = preg_split("/([^\s]*\s+[^\s]*\s+[^\s]*\s+[^\s]*\s+[^\s]*)\s+/", $string, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); print_r($string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/53VJk
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, 'There+is+something+to+type+here.+This+is+an+example+text'
    4     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%28%5B%5E%5Cs%5D%2A%5Cs%2B%5B%5E%5Cs%5D%2A%5Cs%2B%5B%5E%5Cs%5D%2A%5Cs%2B%5B%5E%5Cs%5D%2A%5Cs%2B%5B%5E%5Cs%5D%2A%29%5Cs%2B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 3
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    6     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.91 ms | 1394 KiB | 17 Q