3v4l.org

run code in 300+ PHP versions simultaneously
<?php // osekne retazec $auto = "Audi V8 [C]250000 Kč[/C]"; $regular = "~(.*)\[C\].*\[/C\](.*)~i"; $oseknuty = preg_replace($regular, "$1$2", $auto); // vypíše "Audi V8 " echo('"' . $oseknuty . '"');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rKj9P
function name:  (null)
number of ops:  12
compiled vars:  !0 = $auto, !1 = $regular, !2 = $oseknuty
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Audi+V8+%5BC%5D250000+K%C4%8D%5B%2FC%5D'
    4     1        ASSIGN                                                   !1, '%7E%28.%2A%29%5C%5BC%5C%5D.%2A%5C%5B%2FC%5C%5D%28.%2A%29%7Ei'
    5     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 '%241%242'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
    8     8        CONCAT                                           ~7      '%22', !2
          9        CONCAT                                           ~8      ~7, '%22'
         10        ECHO                                                     ~8
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.37 ms | 1394 KiB | 15 Q