3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(preg_replace('#\w#u', '<|$0|>', 'пхп')) . PHP_EOL; 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/WrcF1
function name:  (null)
number of ops:  17
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                                         $1      
          8        CONCAT                                           ~2      $1, '%0A'
          9        FREE                                                     ~2
    4    10        ECHO                                                     '10.35+2020-05-09%0A'
    5    11        INIT_FCALL                                               'setlocale'
         12        SEND_VAL                                                 6
         13        SEND_VAL                                                 0
         14        DO_ICALL                                         $3      
         15        ECHO                                                     $3
    6    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.47 ms | 1394 KiB | 19 Q