3v4l.org

run code in 500+ PHP versions simultaneously
<?php $atts['home_blog_id'] ="post:du-an,post:tin-tuc"; $id = $atts['home_blog_id']; $slug = str_replace( array('post:','post'), array('',''), $id); Echo "<li>" . implode("</li><li>", explode(",", $slug)) . "</li>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4j5OK
function name:  (null)
number of ops:  16
compiled vars:  !0 = $atts, !1 = $id, !2 = $slug
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                                   !0, 'home_blog_id'
          1        OP_DATA                                                      'post%3Adu-an%2Cpost%3Atin-tuc'
    5     2        FETCH_DIM_R                                          ~4      !0, 'home_blog_id'
          3        ASSIGN                                                       !1, ~4
    6     4        FRAMELESS_ICALL_3                str_replace         ~6      <array>, <array>
          5        OP_DATA                                                      !1
          6        ASSIGN                                                       !2, ~6
    8     7        INIT_FCALL                                                   'explode'
          8        SEND_VAL                                                     '%2C'
          9        SEND_VAR                                                     !2
         10        DO_ICALL                                             $8      
         11        FRAMELESS_ICALL_2                implode             ~9      '%3C%2Fli%3E%3Cli%3E', $8
         12        CONCAT                                               ~10     '%3Cli%3E', ~9
         13        CONCAT                                               ~11     ~10, '%3C%2Fli%3E'
         14        ECHO                                                         ~11
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.37 ms | 2137 KiB | 14 Q