3v4l.org

run code in 300+ 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:  37
compiled vars:  !0 = $result, !1 = $data
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   INIT_FCALL                                               'idn_to_ascii'
         1        SEND_VAL                                                 '.pm--domain.com'
         2        SEND_VAL                                                 0
         3        SEND_VAL                                                 0
         4        DO_ICALL                                         $2      
         5        ASSIGN                                                   !0, $2
   5     6        INIT_FCALL                                               'var_dump'
         7        INIT_FCALL                                               'intl_get_error_code'
         8        DO_ICALL                                         $4      
         9        SEND_VAR                                                 $4
        10        DO_ICALL                                                 
   6    11        INIT_FCALL                                               'var_dump'
        12        INIT_FCALL                                               'intl_get_error_message'
        13        DO_ICALL                                         $6      
        14        SEND_VAR                                                 $6
        15        DO_ICALL                                                 
   8    16        INIT_FCALL                                               'idn_to_ascii'
        17        SEND_VAL                                                 '.pm--domain.com.'
        18        SEND_VAL                                                 0
        19        SEND_VAL                                                 1
        20        SEND_REF                                                 !1
        21        DO_ICALL                                         $8      
        22        ASSIGN                                                   !0, $8
   9    23        INIT_FCALL                                               'var_dump'
        24        INIT_FCALL                                               'intl_get_error_code'
        25        DO_ICALL                                         $10     
        26        SEND_VAR                                                 $10
        27        DO_ICALL                                                 
  10    28        INIT_FCALL                                               'var_dump'
        29        INIT_FCALL                                               'intl_get_error_message'
        30        DO_ICALL                                         $12     
        31        SEND_VAR                                                 $12
        32        DO_ICALL                                                 
  11    33        INIT_FCALL                                               'var_dump'
        34        SEND_VAR                                                 !1
        35        DO_ICALL                                                 
  19    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0