3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match('//u', "\xE3\x81\x82", $matches)); var_dump(preg_match('//u', "\xF0\xA0\x80\x8B", $matches)); var_dump(preg_match('//u', "\xF0\xA0\x80\x8B\x01\xFF", $matches)); var_dump(preg_match('//u', "𠀋", $matches)); var_dump("\xF0\xA0\x80\x8B" == "𠀋");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5I8hN
function name:  (null)
number of ops:  36
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%2Fu'
          3        SEND_VAL                                                 '%E3%81%82'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
    3     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%2F%2Fu'
         11        SEND_VAL                                                 '%F0%A0%80%8B'
         12        SEND_REF                                                 !0
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                                 
    4    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'preg_match'
         18        SEND_VAL                                                 '%2F%2Fu'
         19        SEND_VAL                                                 '%F0%A0%80%8B%01%FF'
         20        SEND_REF                                                 !0
         21        DO_ICALL                                         $5      
         22        SEND_VAR                                                 $5
         23        DO_ICALL                                                 
    5    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'preg_match'
         26        SEND_VAL                                                 '%2F%2Fu'
         27        SEND_VAL                                                 '%F0%A0%80%8B'
         28        SEND_REF                                                 !0
         29        DO_ICALL                                         $7      
         30        SEND_VAR                                                 $7
         31        DO_ICALL                                                 
    7    32        INIT_FCALL                                               'var_dump'
         33        SEND_VAL                                                 <true>
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.87 ms | 1388 KiB | 17 Q