3v4l.org

run code in 300+ PHP versions simultaneously
<?php function configure_apple_content( $content ) { $remov = array("[", "]"); $replc = array("<", ">"); $content = str_replace($remov, $replc, $content); return $content; } $in ="[red]Red[/red]"; Echo "Input: ".$in."\n"; Echo "Output: ".configure_apple_content($in);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XFkm4
function name:  (null)
number of ops:  10
compiled vars:  !0 = $in
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, '%5Bred%5DRed%5B%2Fred%5D'
   10     1        CONCAT                                           ~2      'Input%3A+', !0
          2        CONCAT                                           ~3      ~2, '%0A'
          3        ECHO                                                     ~3
   11     4        INIT_FCALL                                               'configure_apple_content'
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0  $4      
          7        CONCAT                                           ~5      'Output%3A+', $4
          8        ECHO                                                     ~5
          9      > RETURN                                                   1

Function configure_apple_content:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XFkm4
function name:  configure_apple_content
number of ops:  11
compiled vars:  !0 = $content, !1 = $remov, !2 = $replc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    6     3        INIT_FCALL                                               'str_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !0, $5
    7     9      > RETURN                                                   !0
    8    10*     > RETURN                                                   null

End of function configure_apple_content

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
234.34 ms | 1000 KiB | 15 Q