3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(setlocale(LC_TEXT, '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/tAATI
function name:  (null)
number of ops:  18
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        FETCH_CONSTANT                                   ~1      'LC_TEXT'
          3        SEND_VAL                                                 ~1
          4        SEND_VAL                                                 'ru_RU.UTF-8'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    3     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'preg_match_all'
         10        SEND_VAL                                                 '%2F%5Cw%2B%2Fu'
         11        SEND_VAL                                                 '-foo-bar%D0%BB%D0%BE%D0%BBbaz-'
         12        SEND_REF                                                 !0
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.47 ms | 1394 KiB | 19 Q