3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php setlocale(LC_ALL, 'ru_RU.cp1251'); echo preg_replace ('/\PL/i', '_', 'ёйцукенгшщзхъфывапролджэячсмитьбю1234567890'); echo preg_last_error();
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/2sc53
function name:  (null)
number of ops:  14
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'setlocale'
         1        SEND_VAL                                                 6
         2        SEND_VAL                                                 'ru_RU.cp1251'
         3        DO_ICALL                                                 
   3     4        INIT_FCALL                                               'preg_replace'
         5        SEND_VAL                                                 '%2F%5CPL%2Fi'
         6        SEND_VAL                                                 '_'
         7        SEND_VAL                                                 '%D1%91%D0%B9%D1%86%D1%83%D0%BA%D0%B5%D0%BD%D0%B3%D1%88%D1%89%D0%B7%D1%85%D1%8A%D1%84%D1%8B%D0%B2%D0%B0%D0%BF%D1%80%D0%BE%D0%BB%D0%B4%D0%B6%D1%8D%D1%8F%D1%87%D1%81%D0%BC%D0%B8%D1%82%D1%8C%D0%B1%D1%8E1234567890'
         8        DO_ICALL                                         $1      
         9        ECHO                                                     $1
   4    10        INIT_FCALL                                               'preg_last_error'
        11        DO_ICALL                                         $2      
        12        ECHO                                                     $2
        13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0