3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<ul><li><a href="">Test</a>(10)</li>'; $string = str_replace('</a>',' ', $string); // output <ul><li><a href="">Test'(10)</li> $string = str_replace('</li>','</a></li>', $string); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RF7B0
function name:  (null)
number of ops:  14
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cul%3E%3Cli%3E%3Ca+href%3D%22%22%3ETest%3C%2Fa%3E%2810%29%3C%2Fli%3E'
    5     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%3C%2Fa%3E'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    7     7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '%3C%2Fli%3E'
          9        SEND_VAL                                                 '%3C%2Fa%3E%3C%2Fli%3E'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
    9    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.71 ms | 1394 KiB | 15 Q