3v4l.org

run code in 300+ PHP versions simultaneously
<?php // PHP 7.3.x $result=idn_to_ascii('.pm--domain.com'); 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.'); var_dump(intl_get_error_code()); // 0 var_dump(intl_get_error_message()); // U_ZERO_ERROR
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4bXtW
function name:  (null)
number of ops:  29
compiled vars:  !0 = $result
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        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
    5     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL_BY_NAME                                       'intl_get_error_code'
          6        DO_FCALL                                      0  $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL_BY_NAME                                       'intl_get_error_message'
         11        DO_FCALL                                      0  $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
    8    14        INIT_FCALL_BY_NAME                                       'idn_to_ascii'
         15        SEND_VAL_EX                                              '.pm--domain.com.'
         16        DO_FCALL                                      0  $7      
         17        ASSIGN                                                   !0, $7
    9    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL_BY_NAME                                       'intl_get_error_code'
         20        DO_FCALL                                      0  $9      
         21        SEND_VAR                                                 $9
         22        DO_ICALL                                                 
   10    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL_BY_NAME                                       'intl_get_error_message'
         25        DO_FCALL                                      0  $11     
         26        SEND_VAR                                                 $11
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.69 ms | 940 KiB | 16 Q