3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input= (string)"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/TZXVC
function name:  (null)
number of ops:  12
compiled vars:  !0 = $input, !1 = $number, !2 = $text, !3 = $print
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          6  ~4      '102'
          1        ASSIGN                                                   !0, ~4
    4     2        ASSIGN                                                   !1, <array>
    5     3        ASSIGN                                                   !2, <array>
    6     4        INIT_FCALL                                               'str_replace'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !3, $8
    7    10        ECHO                                                     !3
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.01 ms | 1394 KiB | 15 Q