3v4l.org

run code in 300+ PHP versions simultaneously
<?php $letters = 'абвгдеёжзийклмнопрстуфхцчшщыэюяabcdefghijklmnopqrstuvwxyz'; if (function_exists('mb_str_split')) { // PHP7.4 and higher var_export(array_fill_keys(mb_str_split($letters), [])); } else { // below PHP7.4 var_export(array_fill_keys(preg_split('~~u', $letters, 0, PREG_SPLIT_NO_EMPTY), [])); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 16
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Rcuq
function name:  (null)
number of ops:  30
compiled vars:  !0 = $letters
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%D0%B0%D0%B1%D0%B2%D0%B3%D0%B4%D0%B5%D1%91%D0%B6%D0%B7%D0%B8%D0%B9%D0%BA%D0%BB%D0%BC%D0%BD%D0%BE%D0%BF%D1%80%D1%81%D1%82%D1%83%D1%84%D1%85%D1%86%D1%87%D1%88%D1%89%D1%8B%D1%8D%D1%8E%D1%8Fabcdefghijklmnopqrstuvwxyz'
    4     1        INIT_FCALL                                               'function_exists'
          2        SEND_VAL                                                 'mb_str_split'
          3        DO_ICALL                                         $2      
          4      > JMPZ                                                     $2, ->16
    6     5    >   INIT_FCALL                                               'var_export'
          6        INIT_FCALL                                               'array_fill_keys'
          7        INIT_FCALL                                               'mb_str_split'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        SEND_VAL                                                 <array>
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                                 
         15      > JMP                                                      ->29
    9    16    >   INIT_FCALL                                               'var_export'
         17        INIT_FCALL                                               'array_fill_keys'
         18        INIT_FCALL                                               'preg_split'
         19        SEND_VAL                                                 '%7E%7Eu'
         20        SEND_VAR                                                 !0
         21        SEND_VAL                                                 0
         22        SEND_VAL                                                 1
         23        DO_ICALL                                         $6      
         24        SEND_VAR                                                 $6
         25        SEND_VAL                                                 <array>
         26        DO_ICALL                                         $7      
         27        SEND_VAR                                                 $7
         28        DO_ICALL                                                 
   10    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.82 ms | 1396 KiB | 23 Q