3v4l.org

run code in 500+ PHP versions simultaneously
<?php $locale = 'ru_RU'; putenv("LANG=$locale" . '.UTF-8'); putenv("LANGUAGE=$locale" . '.UTF-8'); setlocale(LC_ALL, $locale . '.UTF-8'); // . '.UTF-8' $arr = array(12.12,12,23,21.44,67.88); print_r(implode(',', $arr));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DpnLh
function name:  (null)
number of ops:  24
compiled vars:  !0 = $locale, !1 = $arr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'ru_RU'
    4     1        INIT_FCALL                                                   'putenv'
          2        NOP                                                          
          3        FAST_CONCAT                                          ~3      'LANG%3D', !0
          4        CONCAT                                               ~4      ~3, '.UTF-8'
          5        SEND_VAL                                                     ~4
          6        DO_ICALL                                                     
    5     7        INIT_FCALL                                                   'putenv'
          8        NOP                                                          
          9        FAST_CONCAT                                          ~6      'LANGUAGE%3D', !0
         10        CONCAT                                               ~7      ~6, '.UTF-8'
         11        SEND_VAL                                                     ~7
         12        DO_ICALL                                                     
    6    13        INIT_FCALL                                                   'setlocale'
         14        SEND_VAL                                                     6
         15        CONCAT                                               ~9      !0, '.UTF-8'
         16        SEND_VAL                                                     ~9
         17        DO_ICALL                                                     
    8    18        ASSIGN                                                       !1, <array>
    9    19        INIT_FCALL                                                   'print_r'
         20        FRAMELESS_ICALL_2                implode             ~12     '%2C', !1
         21        SEND_VAL                                                     ~12
         22        DO_ICALL                                                     
         23      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
211.71 ms | 2905 KiB | 16 Q