3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(preg_replace('#\bпхп\b#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/nSp5T
function name:  (null)
number of ops:  14
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%5Cb%D0%BF%D1%85%D0%BF%5Cb%23u'
          3        SEND_VAL                                                 '%3C%7C%240%7C%3E'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    4     7        ECHO                                                     '10.35+2020-05-09%0A'
    5     8        INIT_FCALL                                               'setlocale'
          9        SEND_VAL                                                 6
         10        SEND_VAL                                                 0
         11        DO_ICALL                                         $2      
         12        ECHO                                                     $2
    6    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.43 ms | 1394 KiB | 19 Q