3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'пинг понг'; var_dump(preg_replace('/\W/u', '-', $text), preg_replace('/\PL/u', '-', $text));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YeMpR
function name:  (null)
number of ops:  16
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%D0%BF%D0%B8%D0%BD%D0%B3+%D0%BF%D0%BE%D0%BD%D0%B3'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%5CW%2Fu'
          4        SEND_VAL                                                 '-'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        INIT_FCALL                                               'preg_replace'
          9        SEND_VAL                                                 '%2F%5CPL%2Fu'
         10        SEND_VAL                                                 '-'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.71 ms | 1394 KiB | 17 Q