3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); var_dump(preg_replace('/[\pZ\pC]+/u', '', 'ChrisM')); var_dump(preg_replace('/[\pZ\pC]+/u', '', 't e s t')); var_dump(preg_replace('/[\pZ\pC]+/u', '', "테스트\tChrisM\rnekoda"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B5BmR
function name:  (null)
number of ops:  28
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%2F%5B%5CpZ%5CpC%5D%2B%2Fu'
          6        SEND_VAL                                                 ''
          7        SEND_VAL                                                 'ChrisM'
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
         10        DO_ICALL                                                 
    4    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'preg_replace'
         13        SEND_VAL                                                 '%2F%5B%5CpZ%5CpC%5D%2B%2Fu'
         14        SEND_VAL                                                 ''
         15        SEND_VAL                                                 't+e+s+t'
         16        DO_ICALL                                         $3      
         17        SEND_VAR                                                 $3
         18        DO_ICALL                                                 
    5    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'preg_replace'
         21        SEND_VAL                                                 '%2F%5B%5CpZ%5CpC%5D%2B%2Fu'
         22        SEND_VAL                                                 ''
         23        SEND_VAL                                                 '%ED%85%8C%EC%8A%A4%ED%8A%B8%09ChrisM%0Dnekoda'
         24        DO_ICALL                                         $5      
         25        SEND_VAR                                                 $5
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
282.75 ms | 1012 KiB | 16 Q