3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.07 ms | 1396 KiB | 17 Q