3v4l.org

run code in 500+ PHP versions simultaneously
<?php $nums = "1,2,3,\n,4,5,6,\n,7,8,9"; echo strtr($nums,array("1" => "")); echo "\n\n"; echo strtr($nums,"1","");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iBZK2
function name:  (null)
number of ops:  8
compiled vars:  !0 = $nums
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '1%2C2%2C3%2C%0A%2C4%2C5%2C6%2C%0A%2C7%2C8%2C9'
    4     1        FRAMELESS_ICALL_2                strtr               ~2      !0, <array>
          2        ECHO                                                         ~2
    6     3        ECHO                                                         '%0A%0A'
    8     4        FRAMELESS_ICALL_3                strtr               ~3      !0, '1'
          5        OP_DATA                                                      ''
          6        ECHO                                                         ~3
          7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.02 ms | 3158 KiB | 13 Q