3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $type = 'string'; $name = 'test'; echo str_replace(['%type%', '%name%'], [$type => $name], '* @param %type% %name%');
based on MCteC
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/7lA04
function name:  (null)
number of ops:  10
compiled vars:  !0 = $type, !1 = $name
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, 'string'
   3     1        ASSIGN                                                   !1, 'test'
   4     2        INIT_FCALL                                               'str_replace'
         3        SEND_VAL                                                 <array>
         4        INIT_ARRAY                                       ~4      !1, !0
         5        SEND_VAL                                                 ~4
         6        SEND_VAL                                                 '%2A+%40param+%25type%25+%25name%25'
         7        DO_ICALL                                         $5      
         8        ECHO                                                     $5
         9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.1.0