3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(preg_replace('#\w#u', '<|$0|>', 'пхп')); echo PCRE_VERSION . PHP_EOL; echo setlocale(LC_ALL, 0); //print_r(preg_last_error());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OhI6c
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23%5Cw%23u'
          3        SEND_VAL                                                 '%3C%7C%240%7C%3E'
          4        SEND_VAL                                                 '%D0%BF%D1%85%D0%BF'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                                 
    4     8        ECHO                                                     '10.35+2020-05-09%0A'
    5     9        INIT_FCALL                                               'setlocale'
         10        SEND_VAL                                                 6
         11        SEND_VAL                                                 0
         12        DO_ICALL                                         $2      
         13        ECHO                                                     $2
    6    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.98 ms | 1394 KiB | 19 Q