3v4l.org

run code in 300+ 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:  22
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        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 <array>
          6        SEND_VAL                                                 <array>
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    8    10        INIT_FCALL                                               'implode'
         11        SEND_VAL                                                 '%3C%2Fli%3E%3Cli%3E'
         12        INIT_FCALL                                               'explode'
         13        SEND_VAL                                                 '%2C'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
         17        DO_ICALL                                         $9      
         18        CONCAT                                           ~10     '%3Cli%3E', $9
         19        CONCAT                                           ~11     ~10, '%3C%2Fli%3E'
         20        ECHO                                                     ~11
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.38 ms | 999 KiB | 16 Q