3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'โ‚ฌ๐Ÿ˜„A๐ˆยข'; $r = preg_match_all('|[\x{10000}-\x{10FFFF}]|u', $str, $matches); var_dump($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JX9aQ
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str, !1 = $r, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%E2%82%AC%F0%9F%98%84A%F0%90%8D%88%C2%A2'
    6     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%7C%5B%5Cx%7B10000%7D-%5Cx%7B10FFFF%7D%5D%7Cu'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !2
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    8     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:
138.79 ms | 997 KiB | 15 Q