3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = <<<EOT <a class="a{{number}} t h clickable {{free}} {{selected}}" data-info="{{free}}" data-type="{{type}}" title="{{type}}" data-id={{number}}">{{number}}</a> EOT; $s = array( '{{number}}' => 54, '{{free}}' => 'free', '{{selected}}' => 'cur', ); var_dump(strtr($t, $s));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m8TF3
function name:  (null)
number of ops:  10
compiled vars:  !0 = $t, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ca++class%3D%22a%7B%7Bnumber%7D%7D+t+h+clickable++%7B%7Bfree%7D%7D+%7B%7Bselected%7D%7D%22%0A++++data-info%3D%22%7B%7Bfree%7D%7D%22%0A++++data-type%3D%22%7B%7Btype%7D%7D%22%0A++++title%3D%22%7B%7Btype%7D%7D%22%0A++++data-id%3D%7B%7Bnumber%7D%7D%22%3E%7B%7Bnumber%7D%7D%3C%2Fa%3E'
   10     1        ASSIGN                                                   !1, <array>
   16     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'strtr'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.78 ms | 1394 KiB | 17 Q