3v4l.org

run code in 300+ PHP versions simultaneously
<?php putenv('LANG=ja_JP.UTF-8'); setlocale(LC_ALL, 'C'); var_dump(setlocale(LC_ALL, "0")); var_dump(gethostbynamel("xxx.invalid")); var_dump(setlocale(LC_ALL, "0"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t6TTT
function name:  (null)
number of ops:  28
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'putenv'
          1        SEND_VAL                                                 'LANG%3Dja_JP.UTF-8'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'setlocale'
          4        SEND_VAL                                                 6
          5        SEND_VAL                                                 'C'
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'setlocale'
          9        SEND_VAL                                                 6
         10        SEND_VAL                                                 '0'
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
    5    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'gethostbynamel'
         16        SEND_VAL                                                 'xxx.invalid'
         17        DO_ICALL                                         $4      
         18        SEND_VAR                                                 $4
         19        DO_ICALL                                                 
    6    20        INIT_FCALL                                               'var_dump'
         21        INIT_FCALL                                               'setlocale'
         22        SEND_VAL                                                 6
         23        SEND_VAL                                                 '0'
         24        DO_ICALL                                         $6      
         25        SEND_VAR                                                 $6
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.71 ms | 1395 KiB | 21 Q