3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is my test case for an example."; var_export( preg_split( "/(?=(\S+ \S+))\S+ (?:\S+$)?/", $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/fD1AR
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, 'This+is+my+test+case+for+an+example.'
    5     1        INIT_FCALL                                               'var_export'
    6     2        INIT_FCALL                                               'preg_split'
    7     3        SEND_VAL                                                 '%2F%28%3F%3D%28%5CS%2B+%5CS%2B%29%29%5CS%2B+%28%3F%3A%5CS%2B%24%29%3F%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.56 ms | 999 KiB | 15 Q