3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = "Main Title"; $subtitle = "Sub Title"; $output = str_replace('%TITLE%', $title, $subtitle, $output); echo $output;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EqOPO
function name:  (null)
number of ops:  11
compiled vars:  !0 = $title, !1 = $subtitle, !2 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Main+Title'
    4     1        ASSIGN                                                   !1, 'Sub+Title'
    5     2        INIT_FCALL                                               'str_replace'
          3        SEND_VAL                                                 '%25TITLE%25'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_REF                                                 !2
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !2, $5
    6     9        ECHO                                                     !2
    7    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.81 ms | 1009 KiB | 14 Q