3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(strlen(𠀋)); 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/aRHat
function name:  (null)
number of ops:  41
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_CONSTANT                                   ~1      '%F0%A0%80%8B'
          2        STRLEN                                           ~2      ~1
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    3     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%2F%2Fu'
          8        SEND_VAL                                                 '%E3%81%82'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
    4    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'preg_match'
         15        SEND_VAL                                                 '%2F%2Fu'
         16        SEND_VAL                                                 '%F0%A0%80%8B'
         17        SEND_REF                                                 !0
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                                 
    5    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'preg_match'
         23        SEND_VAL                                                 '%2F%2Fu'
         24        SEND_VAL                                                 '%F0%A0%80%8B%01%FF'
         25        SEND_REF                                                 !0
         26        DO_ICALL                                         $8      
         27        SEND_VAR                                                 $8
         28        DO_ICALL                                                 
    6    29        INIT_FCALL                                               'var_dump'
         30        INIT_FCALL                                               'preg_match'
         31        SEND_VAL                                                 '%2F%2Fu'
         32        SEND_VAL                                                 '%F0%A0%80%8B'
         33        SEND_REF                                                 !0
         34        DO_ICALL                                         $10     
         35        SEND_VAR                                                 $10
         36        DO_ICALL                                                 
    8    37        INIT_FCALL                                               'var_dump'
         38        SEND_VAL                                                 <true>
         39        DO_ICALL                                                 
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.62 ms | 1396 KiB | 17 Q