3v4l.org

run code in 300+ 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:  27
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        INIT_FCALL                                               'implode'
         21        SEND_VAL                                                 '%2C'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $12     
         24        SEND_VAR                                                 $12
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.3 ms | 1387 KiB | 21 Q