3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "\x2F\xC0\xAE\x2E\x2F"; $converted = mb_convert_encoding($str, 'UTF-8', 'UTF-8'); var_dump(bin2hex($str), $converted, bin2hex($converted), preg_match('//u', $str));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rJj7q
function name:  (null)
number of ops:  24
compiled vars:  !0 = $str, !1 = $converted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2F%C0%AE.%2F'
    4     1        INIT_FCALL                                               'mb_convert_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'UTF-8'
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    6     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'bin2hex'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        SEND_VAR                                                 !1
         13        INIT_FCALL                                               'bin2hex'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        INIT_FCALL                                               'preg_match'
         18        SEND_VAL                                                 '%2F%2Fu'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $7      
         21        SEND_VAR                                                 $7
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.95 ms | 1395 KiB | 21 Q