3v4l.org

run code in 500+ PHP versions simultaneously
<?php // PHP 7.3.x $result=idn_to_ascii('.pm--domain.com', IDNA_DEFAULT, INTL_IDNA_VARIANT_2003); var_dump(intl_get_error_code()); // 66567 var_dump(intl_get_error_message()); // idn_to_ascii: cannot convert to ASCII: U_IDNA_ZERO_LENGTH_LABEL_ERROR // PHP 7.4.x $result=idn_to_ascii('.pm--domain.com.', IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46, $data); var_dump(intl_get_error_code()); // 0 var_dump(intl_get_error_message()); // U_ZERO_ERROR var_dump($data); /**array(3) { ["result"]=> string(16) ".pm--domain.com." ["isTransitionalDifferent"]=> bool(false) ["errors"]=> int(33) }*/
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aK0Es
function name:  (null)
number of ops:  41
compiled vars:  !0 = $result, !1 = $data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                           'idn_to_ascii'
          1        SEND_VAL_EX                                                  '.pm--domain.com'
          2        FETCH_CONSTANT                                       ~2      'IDNA_DEFAULT'
          3        SEND_VAL_EX                                                  ~2
          4        FETCH_CONSTANT                                       ~3      'INTL_IDNA_VARIANT_2003'
          5        SEND_VAL_EX                                                  ~3
          6        DO_FCALL                                          0  $4      
          7        ASSIGN                                                       !0, $4
    5     8        INIT_FCALL                                                   'var_dump'
          9        INIT_FCALL_BY_NAME                                           'intl_get_error_code'
         10        DO_FCALL                                          0  $6      
         11        SEND_VAR                                                     $6
         12        DO_ICALL                                                     
    6    13        INIT_FCALL                                                   'var_dump'
         14        INIT_FCALL_BY_NAME                                           'intl_get_error_message'
         15        DO_FCALL                                          0  $8      
         16        SEND_VAR                                                     $8
         17        DO_ICALL                                                     
    8    18        INIT_FCALL_BY_NAME                                           'idn_to_ascii'
         19        SEND_VAL_EX                                                  '.pm--domain.com.'
         20        FETCH_CONSTANT                                       ~10     'IDNA_DEFAULT'
         21        SEND_VAL_EX                                                  ~10
         22        FETCH_CONSTANT                                       ~11     'INTL_IDNA_VARIANT_UTS46'
         23        SEND_VAL_EX                                                  ~11
         24        SEND_VAR_EX                                                  !1
         25        DO_FCALL                                          0  $12     
         26        ASSIGN                                                       !0, $12
    9    27        INIT_FCALL                                                   'var_dump'
         28        INIT_FCALL_BY_NAME                                           'intl_get_error_code'
         29        DO_FCALL                                          0  $14     
         30        SEND_VAR                                                     $14
         31        DO_ICALL                                                     
   10    32        INIT_FCALL                                                   'var_dump'
         33        INIT_FCALL_BY_NAME                                           'intl_get_error_message'
         34        DO_FCALL                                          0  $16     
         35        SEND_VAR                                                     $16
         36        DO_ICALL                                                     
   11    37        INIT_FCALL                                                   'var_dump'
         38        SEND_VAR                                                     !1
         39        DO_ICALL                                                     
   19    40      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
185.01 ms | 3441 KiB | 14 Q