3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input="102"; $number = array('0','1','2','3','4','5','6','7','8','9','10'); $text = array('a','b','c','d','e','f','g','h','i','j','k'); $print = str_replace($number, $text, $input); echo $print;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DYUPG
function name:  (null)
number of ops:  11
compiled vars:  !0 = $input, !1 = $number, !2 = $text, !3 = $print
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '102'
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    6     3        INIT_FCALL                                               'str_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !3, $7
    7     9        ECHO                                                     !3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.02 ms | 1394 KiB | 15 Q