3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nameFilter = '%'.trim('dio_cane').'%'; $nameFilter = preg_replace('/\s+/', '%', $nameFilter); echo $nameFilter;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oWuhF
function name:  (null)
number of ops:  14
compiled vars:  !0 = $nameFilter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'trim'
          1        SEND_VAL                                                 'dio_cane'
          2        DO_ICALL                                         $1      
          3        CONCAT                                           ~2      '%25', $1
          4        CONCAT                                           ~3      ~2, '%25'
          5        ASSIGN                                                   !0, ~3
    4     6        INIT_FCALL                                               'preg_replace'
          7        SEND_VAL                                                 '%2F%5Cs%2B%2F'
          8        SEND_VAL                                                 '%25'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !0, $5
    6    12        ECHO                                                     !0
    7    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.86 ms | 1394 KiB | 17 Q