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+\K /", preg_replace( '/(?<= )(\S+ )\K/', '$1', $string ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2d0El
function name:  (null)
number of ops:  14
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%5CS%2B+%5CS%2B%5CK+%2F'
    8     4        INIT_FCALL                                               'preg_replace'
    9     5        SEND_VAL                                                 '%2F%28%3F%3C%3D+%29%28%5CS%2B+%29%5CK%2F'
   10     6        SEND_VAL                                                 '%241'
   11     7        SEND_VAR                                                 !0
    8     8        DO_ICALL                                         $2      
   11     9        SEND_VAR                                                 $2
    6    10        DO_ICALL                                         $3      
   11    11        SEND_VAR                                                 $3
    5    12        DO_ICALL                                                 
   14    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.08 ms | 1000 KiB | 16 Q