3v4l.org

run code in 300+ PHP versions simultaneously
<?php $unicodeChar = '\u135F'; $string = json_decode('"'.$unicodeChar.'"'); echo "String is $string \n"; $result = preg_match_all( '/\X/u' , $string , $matches , PREG_SET_ORDER ); echo "Result is :".$result."\n"; var_dump($matches); exit(0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/5jOc6
function name:  (null)
number of ops:  26
compiled vars:  !0 = $unicodeChar, !1 = $string, !2 = $result, !3 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5Cu135F'
    4     1        INIT_FCALL                                               'json_decode'
          2        CONCAT                                           ~5      '%22', !0
          3        CONCAT                                           ~6      ~5, '%22'
          4        SEND_VAL                                                 ~6
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !1, $7
    6     7        ROPE_INIT                                     3  ~10     'String+is+'
          8        ROPE_ADD                                      1  ~10     ~10, !1
          9        ROPE_END                                      2  ~9      ~10, '+%0A'
         10        ECHO                                                     ~9
    8    11        INIT_FCALL                                               'preg_match_all'
         12        SEND_VAL                                                 '%2F%5CX%2Fu'
         13        SEND_VAR                                                 !1
         14        SEND_REF                                                 !3
         15        SEND_VAL                                                 2
         16        DO_ICALL                                         $12     
         17        ASSIGN                                                   !2, $12
   10    18        CONCAT                                           ~14     'Result+is+%3A', !2
         19        CONCAT                                           ~15     ~14, '%0A'
         20        ECHO                                                     ~15
   11    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                                 
   13    24      > EXIT                                                     0
         25*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.68 ms | 1395 KiB | 19 Q