3v4l.org

run code in 300+ 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:  14
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        INIT_FCALL                                               'strtr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
    6     6        ECHO                                                     '%0A%0A'
    8     7        INIT_FCALL                                               'strtr'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 '1'
         10        SEND_VAL                                                 ''
         11        DO_ICALL                                         $3      
         12        ECHO                                                     $3
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.42 ms | 1398 KiB | 15 Q