3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(setlocale(LC_COLLATE, 'ru_RU.UTF-8')); var_dump(preg_match_all('/\\w+/u', "-foo-barлолbaz-", $m), $m);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I3bdD
function name:  (null)
number of ops:  17
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'setlocale'
          2        SEND_VAL                                                 3
          3        SEND_VAL                                                 'ru_RU.UTF-8'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                                 
    3     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'preg_match_all'
          9        SEND_VAL                                                 '%2F%5Cw%2B%2Fu'
         10        SEND_VAL                                                 '-foo-bar%D0%BB%D0%BE%D0%BBbaz-'
         11        SEND_REF                                                 !0
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.89 ms | 1394 KiB | 19 Q