3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Hello!! I'm Sajjad Hossain Sagor. It's 2023. w00t :D \ud83e\udd17"; $pattern = "/(?:\\\\u[a-f0-9]+)+|'[stdm]|'[rv]e|'ll| ?\p{L}+| ?\p{N}+| ?(?!\\\\u[a-f0-9]+\b)[^\s\p{L}\p{N}]+|\s+(?!\S)|\s+/"; preg_match_all( $pattern, $text, $matches ); var_dump($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ok5Te
function name:  (null)
number of ops:  12
compiled vars:  !0 = $text, !1 = $pattern, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello%21%21+I%27m+Sajjad+Hossain+Sagor.+It%27s+2023.+w00t+%3AD+%5Cud83e%5Cudd17'
    4     1        ASSIGN                                                   !1, '%2F%28%3F%3A%5C%5Cu%5Ba-f0-9%5D%2B%29%2B%7C%27%5Bstdm%5D%7C%27%5Brv%5De%7C%27ll%7C+%3F%5Cp%7BL%7D%2B%7C+%3F%5Cp%7BN%7D%2B%7C+%3F%28%3F%21%5C%5Cu%5Ba-f0-9%5D%2B%5Cb%29%5B%5E%5Cs%5Cp%7BL%7D%5Cp%7BN%7D%5D%2B%7C%5Cs%2B%28%3F%21%5CS%29%7C%5Cs%2B%2F'
    5     2        INIT_FCALL                                               'preg_match_all'
    6     3        SEND_VAR                                                 !1
    7     4        SEND_VAR                                                 !0
    8     5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
   10     7        INIT_FCALL                                               'var_dump'
          8        FETCH_DIM_R                                      ~6      !2, 0
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.54 ms | 1394 KiB | 17 Q