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")); 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/3cLGa
function name:  (null)
number of ops:  25
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                                               'gethostbynamel'
         15        SEND_VAL                                                 'xxx.invalid'
         16        DO_ICALL                                                 
    6    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'setlocale'
         19        SEND_VAL                                                 6
         20        SEND_VAL                                                 '0'
         21        DO_ICALL                                         $5      
         22        SEND_VAR                                                 $5
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.91 ms | 1395 KiB | 21 Q