3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$unicodeChar = '\u135F'; //$string = json_decode('"'.$unicodeChar.'"'); $string = "\xE1\x8D\x9F"; echo "String is $string \n"; $result = preg_match_all( '/\X/u' , $string , $matches , PREG_SET_ORDER ); echo "Result is :".$result."\n"; var_dump($matches); $result = preg_match_all( '/./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/G7NIJ
function name:  (null)
number of ops:  33
compiled vars:  !0 = $string, !1 = $result, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, '%E1%8D%9F'
    8     1        ROPE_INIT                                     3  ~5      'String+is+'
          2        ROPE_ADD                                      1  ~5      ~5, !0
          3        ROPE_END                                      2  ~4      ~5, '+%0A'
          4        ECHO                                                     ~4
   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                                         $7      
         11        ASSIGN                                                   !1, $7
   12    12        CONCAT                                           ~9      'Result+is+%3A', !1
         13        CONCAT                                           ~10     ~9, '%0A'
         14        ECHO                                                     ~10
   13    15        INIT_FCALL                                               'var_dump'
         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                                                 !2
         22        SEND_VAL                                                 2
         23        DO_ICALL                                         $12     
         24        ASSIGN                                                   !1, $12
   17    25        CONCAT                                           ~14     'Result+is+%3A', !1
         26        CONCAT                                           ~15     ~14, '%0A'
         27        ECHO                                                     ~15
   18    28        INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !2
         30        DO_ICALL                                                 
   21    31      > EXIT                                                     0
         32*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.99 ms | 1396 KiB | 17 Q