3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'abc\def'; var_dump(__LINE__.':'.preg_replace('#\\\#', '', $s)); var_dump(__LINE__.':'.preg_replace('#\\#', '', $s));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Td9vj
function name:  (null)
number of ops:  20
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'abc%5Cdef'
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%23%5C%5C%23'
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        CONCAT                                           ~3      '3%3A', $2
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                                 
    4    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'preg_replace'
         12        SEND_VAL                                                 '%23%5C%23'
         13        SEND_VAL                                                 ''
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $5      
         16        CONCAT                                           ~6      '4%3A', $5
         17        SEND_VAL                                                 ~6
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.49 ms | 998 KiB | 15 Q