3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'a'.chr(245); var_dump( mb_check_encoding($string) ); // iconv() is undefined here //var_dump(@iconv('UTF-8', 'UTF-8', $string) !== false); if (preg_match('##u', $string)) { print "OK\n"; } else { print "KO\n"; } var_dump( json_encode($string) );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TIj54
function name:  (null)
number of ops:  19
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'a%F5'
    5     1        INIT_FCALL                                                   'var_dump'
          2        INIT_FCALL                                                   'mb_check_encoding'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $2      
          5        SEND_VAR                                                     $2
          6        DO_ICALL                                                     
   10     7        FRAMELESS_ICALL_2                preg_match          ~4      '%23%23u', !0
          8      > JMPZ                                                         ~4, ->11
   11     9    >   ECHO                                                         'OK%0A'
   10    10      > JMP                                                          ->12
   13    11    >   ECHO                                                         'KO%0A'
   16    12    >   INIT_FCALL                                                   'var_dump'
         13        INIT_FCALL                                                   'json_encode'
         14        SEND_VAR                                                     !0
         15        DO_ICALL                                             $5      
         16        SEND_VAR                                                     $5
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.69 ms | 488 KiB | 12 Q