3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "I search 1, regex to: no. Or... yes!"; var_export( preg_split( '#\pL+\'\pL+(*SKIP)(*FAIL)| +|\b#u', $string, flags: PREG_SPLIT_NO_EMPTY ) ); /* array ( 0 => 'I', 1 => 'search', 2 => '1', 3 => ',', 4 => 'regex', 5 => '(', 6 => 'regular', 7 => 'expression', 8 => ')', 9 => 'to', 10 => ':', 11 => 'That', 12 => '\'s', 13 => 'it', 14 => 'is', 15 => '!', 16 => 'Und', 17 => 'über', 18 => 'den', 19 => 'Wolken', 20 => 'müssen', 21 => 'wir', 22 => '...', ) */
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IFrVv
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, 'I+search+1%2C+regex+to%3A++no.+Or...+yes%21'
    4     1        INIT_FCALL                                                   'var_export'
    5     2        INIT_FCALL                                                   'preg_split'
    6     3        SEND_VAL                                                     '%23%5CpL%2B%27%5CpL%2B%28%2ASKIP%29%28%2AFAIL%29%7C+%2B%7C%5Cb%23u'
    7     4        SEND_VAR                                                     !0
    8     5        SEND_VAL                                                     1
          6        CHECK_UNDEF_ARGS                                             
    5     7        DO_ICALL                                             $2      
    8     8        SEND_VAR                                                     $2
    4     9        DO_ICALL                                                     
   38    10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.53 ms | 1400 KiB | 15 Q