3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ctype_print_unicode($input) { return preg_match("~^[\pL\pN\s\"\~". preg_quote("!#$%&'()*+,-./:;<=>?@[\]^_`{|}´") ."]+$~u", $input); } var_dump(ctype_print_unicode('ज़्ज़ाम'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bGbMl
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'ctype_print_unicode'
          2        SEND_VAL                                                 '%E0%A4%9C%E0%A4%BC%E0%A5%8D%E0%A4%9C%E0%A4%BC%E0%A4%BE%E0%A4%AE'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function ctype_print_unicode:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bGbMl
function name:  ctype_print_unicode
number of ops:  12
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'preg_match'
          2        INIT_FCALL                                               'preg_quote'
          3        SEND_VAL                                                 '%21%23%24%25%26%27%28%29%2A%2B%2C-.%2F%3A%3B%3C%3D%3E%3F%40%5B%5C%5D%5E_%60%7B%7C%7D%C2%B4'
          4        DO_ICALL                                         $1      
          5        CONCAT                                           ~2      '%7E%5E%5B%5CpL%5CpN%5Cs%22%5C%7E', $1
          6        CONCAT                                           ~3      ~2, '%5D%2B%24%7Eu'
          7        SEND_VAL                                                 ~3
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10      > RETURN                                                   $4
    6    11*     > RETURN                                                   null

End of function ctype_print_unicode

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.42 ms | 1085 KiB | 17 Q