3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/html; charset=utf-8'); echo "<pre>"; setlocale(LC_ALL, 'cs_CZ.UTF-8', 'Czech'); echo "Nastaveny locale: ". setlocale(LC_ALL, 0) . "\n"; $countries = array( 'Bulharsko', 'Česko', 'Polsko', 'Čína' ); sort($countries, SORT_LOCALE_STRING); print_r($countries);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1AUrV
function name:  (null)
number of ops:  25
compiled vars:  !0 = $countries
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3A+text%2Fhtml%3B+charset%3Dutf-8'
          2        DO_ICALL                                                 
    3     3        ECHO                                                     '%3Cpre%3E'
    4     4        INIT_FCALL                                               'setlocale'
          5        SEND_VAL                                                 6
          6        SEND_VAL                                                 'cs_CZ.UTF-8'
          7        SEND_VAL                                                 'Czech'
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'setlocale'
         10        SEND_VAL                                                 6
         11        SEND_VAL                                                 0
         12        DO_ICALL                                         $3      
         13        CONCAT                                           ~4      'Nastaveny+locale%3A+', $3
         14        CONCAT                                           ~5      ~4, '%0A'
         15        ECHO                                                     ~5
    6    16        ASSIGN                                                   !0, <array>
   13    17        INIT_FCALL                                               'sort'
         18        SEND_REF                                                 !0
         19        SEND_VAL                                                 5
         20        DO_ICALL                                                 
   14    21        INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.32 ms | 1395 KiB | 21 Q